[C++-sig] boost.python automatic policies
gleizesd at gmail.com
Mon Jun 26 09:58:53 CEST 2006
I am currently using boost.Python for binding C++ code. In fact, I'am parsing a
sort of container wich stores all classes I need to bind, including their
methods and members (methods signatures, arguments types). While parsing these
classes, I generates CPP files containing the binding code (wich uses
boost.Python). The problem I'am confronted to concerns the use of policies. Is
there a way to know wich policies to use without knowing what the function
exactly do? Without policies the code does not compile, so I wonder if it is
possible to know wich policies to use just with the decoration of arguments and
return value (types, reference, pointer, const etc).
Thanks for your suggestions!
More information about the Cplusplus-sig