[C++-sig] Getting the wrapped C++ instance from a boost::python::object

Stefan Seefeld seefeld at sympatico.ca
Sat Feb 6 18:54:11 CET 2010


On 02/06/2010 08:39 AM, Murray Cumming wrote:
> If I have a boost::python::object that I know contains a PyObject that
> wraps an instance of my C++ class, MyClass, can I get a pointer to that
> MyClass instance, so I can call its C++ methods?
>    

http://www.boost.org/doc/libs/1_41_0/libs/python/doc/tutorial/doc/html/python/object.html#python.extracting_c___objects


     Stefan

-- 

       ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list