2010/5/20 Kun Hong
>
>
> class B
> {
> public:
>virtual const char *getName() const = 0;
> };
>
> BOOST_PYTHON_MODULE(Test)
> {
>
>class_
>("B", no_init)
>.def("getName", pure_virtual(&B::getName))
>;
>
>def("getB", &getB,
> return_value
Hi everyone.
I'm trying to use Boost.Python to expose some of my C++ classes and I
encountered an odd behaviour of the to_python_indirect result converter for
intrusive_ptr with specific classes.
Here is the deal:
I'm using a component-based design for my classes, meaning an aggregation of
object