Hi,


I find the solution, first of all I need to add the initializer on the C++ 
class import:

      

      class_<ComponentWrap, boost::shared_ptr<Component>, 
boost::noncopyable>("Component", init<>())

      // I additionally added a Holder, but is not necessary.



Then I add the base class initializer on the python class:



      class Derived(DemiWu.Component):

            def __init__(self):

                  DemiWu.Component.__init__(self)



I only find a problem, if a python class call the print function it doesn't 
work.



Thanks,



Carlos
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to