Boost logo

Boost Users :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-06-16 14:18:40


Hi,

is there any way to register external constructor for C++ class?

Specifically If I have class
class A {
...
};

I want to register constructor like this:

class_<A>(...)
 .def( "__init__", &make_A )

where make_A is defined something like:

void
make_A( A&, boost::python::list const& );

Doesn't seem to work like this.

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net