
Thank you for your message, but it does not answer my question, I know how to reflect a C++ constructor under Python through boost and have absolutly no problem with that. My question is about reflecting Bctor(A& a, double& x) where Bctor is the constructor of class B and A another class. As I said, I can do that for any other function, except a constructor. I already read many website, including python and boost websites, before asking my question here. The link you provided, and that I already read before, only explain how to reflect a constructor. That would be of great help if anyone could give me some clue. Jean-Joseph Christophe ________________________________ De : Steven Watanabe <watanabesj@gmail.com> À : boost@lists.boost.org Envoyé le : Dimanche 11 mars 2012 2h49 Objet : Re: [boost] Using an element of a class A in a constructor of a class B (reflection with boost::python) AMDG On 03/10/2012 04:03 PM, christophe jean-joseph wrote:
I am declaring f under both its class B and A_Base as follow: .def("f", &B::f)
But when I try this for a constructor as f, it refuse to compile. Anyone got a clue? Thank you very much in advance for any further help.
http://www.boost.org/libs/python/doc/tutorial/doc/html/python/exposing.html#... In Christ, Steven Watanabe _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost