On 25 September 2015 at 17:20, Stefan Seefeld <ste...@seefeld.name> wrote:
> I don't entirely understand what you are saying. What do you mean by > "boost.python object", and what by "boost.python library function" ? > I think he has a C++ class that was exposed to Python, and which is included as a member of a pure Python class. I think he would like to be able to "implicitly convert" said pure Python class to the type of the exposed C++ class, so that it can be used directly as an argument to exposed C++ functions that expect the exposed C++ class as argument. Maybe a possible solution would be to register a Python converter for your wrapping class? This blog post was helpful to me when I had to learn how to write custom to/from Python converters: http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters Hope that helps! Cheers, Francesco.
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig