March 13, 2005
12:51 a.m.
Use make_constructor to register the constructor for the smart pointer in the View export.
exportedClass.def("__init__",make_constructor(New<ClassType>)); did it, rox. thanks again! this gives me plenty of ideas to solve other comfortability-issues as well. :)
Sure; just make thin wrapper functions that take a Ptr<View>& as the first argument and then def them. In fact, I don't think you need the thin wrappers and you can just
.def("foo", &Ptr<View>::foo)
in your class_<View,...> construct.
will try that when time comes and give feedback