[C++-sig] passing wrapped c++ objects to boost wrapped function

Alex Mohr amohr at pixar.com
Fri Jan 5 00:38:53 CET 2007


> The OEMol was not wrapped by me, but a vendor. I have the headers,  
> and the python bindings appear to be generated by swig.

If that's true, then boost.python cannot "just know" how to get the C++ 
OEMol object out of a swig-generated wrapping Python object.

You might be able to teach boost.python how to deal with OEMols by 
registering your own to_python and from_python conversions for OEMol 
which use swig to do the work.

Alex



More information about the Cplusplus-sig mailing list