Last night I added function transformers to my py++ code generation
script. But unfortunately it now looks like I can't use this feature
with boost 1.33.1. It gives this error on compiling:
In file included from src/python/ben_module/generated/_ben.main.cpp:7:
src/python/ben_module/generated/__call_policies.pypp.hpp:14:58: error:
boost/python/suite/indexing/iterator_range.hpp: No such file or directory
src/python/ben_module/generated/__convenience.pypp.hpp: In function
'void
pyplusplus::convenience::ensure_uniform_sequence(boost::python::api::object,
pyplusplus::convenience::index_type)':
src/python/ben_module/generated/__convenience.pypp.hpp:46: error: 'len'
is not a member of 'boost::python'
I am assuming this means that it requires the a customized version of
boost with the new indexing suite that is not part of the standard
boost.python. Is this correct? Is there any way around this?
It would be very painful for me to tell all my users that they can't use
the standard version of boost that comes with their OS or that they can
get from boost.org. Unless the indexing suite is accepted into
boost.python I don't really think it will ever become an option for me
to use it or any py++ code that requires it. :(
In the case of the code I am generating, I am only using the FT.output
transformation anyway, so it doesn't even need the indexing suite. Is
there any way that py++ could be a bit smarter and not include the
indexing suite files unless they are needed?
-Allen
|