[C++-sig] Conversion of C++ return type.

Hanz Meizer steam at nurfuerspam.de
Thu Feb 26 11:32:56 CET 2004


Hello,

I've realized that one of the C++-classes of my project will be very 
hard to wrap. Basically, it's a generic container type that holds a 
pointer to some object (similar to auto_ptr<>). The class is called 
'Any' because it can contain a pointer to anything (nice eh? :( ).

What I want to do is avoid this class entirely from python, that means, 
I want to have the wrapped object returned directly without the Any 
class wrapper. Functions that take an Any as rgument should be callable 
as well, of course.

My question: Is it possible to shado this Any class entirely, and if 
yes, has this been done or where can I get some hints as to how this 
could work? I've searched some and my guess is to_python_converter, but 
I currently don't see the way how to achive my goal.

Regards,
H.





More information about the Cplusplus-sig mailing list