[C++-sig] mapping object pointers with boost
Alex Mohr
amohr at pixar.com
Tue Oct 10 22:56:47 CEST 2006
> Ha. But that actually makes sense. :)
>
> But unfortunately, I'm still getting:
> error: no matching function for call to 'Ndb::Ndb()'
That's because by not saying "no_init" in the class_<> constructor,
boost python has assumed that you have a default constructor. Try this:
class_<Ndb>("Ndb", no_init)
.def(init<Ndb_cluster_connection *, char const *, char const *>());
Alex
More information about the Cplusplus-sig
mailing list