[C++-sig] mapping object pointers with boost
Monty Taylor
monty at inaugust.com
Tue Oct 10 23:28:06 CEST 2006
Well. That seems to have done it. And it even makes sense. Thanks!
On 10/10/06, Alex Mohr <amohr at pixar.com> wrote:
> > 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
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
More information about the Cplusplus-sig
mailing list