[C++-sig] mapping object pointers with boost

Stefan Seefeld seefeld at sympatico.ca
Wed Oct 11 02:12:23 CEST 2006


Monty Taylor wrote:

> The code has a nested class Dictionary inside NdbDictionary. The
> Dictionary class has a method, getTable. So I tried this:
> 
> class_<NdbDictionary::Dictionary,boost::noncopyable>("Dictionary",no_init)
>     .def("getTable", &NdbDictionary::Dictionary::getTable,
> 	 return_value_policy<reference_existing_object>() )
>     ;
> 
> But it doesn't see getTable as a method - it sees NdbDictionary as a
> method that it can't find. How do I tell it how to find the original
> method?

Please post the actual error message you get with the above code.

Thanks,
		Stefan



More information about the Cplusplus-sig mailing list