Boost logo

Boost Users :

From: Benjamin Schmeling (Benjamin_Schmeling_at_[hidden])
Date: 2005-01-31 17:34:10


Hi,
I have exposed a bigint class which has no constructor for long_ .
I added an additional constructor by defining .def("__init__",
make_constructor(bigint_constructor))
This works fine. Now I want to use the implicitly_convertible function
which expects from the class to have an constructor which takes the
first argumen (in this case a long_)
I used implicitly_convertible<boost::python::long_ ,bigint> but now the
problem is that the original c++ class has no such constructor, but the
wrapped class. How can I make him use my new constructor in
implicitly_convertible?

Benjamin


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