Re: Overloads w/shared_ptr
Peter Colberg <[email protected]> Wed, 17 Aug 2011 10:23:11 -0400
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 17, 2011 at 10:20:00AM +0200, Stefan Schindler wrote:
> I'm currently having a problem with specifying a custom overload for the
> following definition:
>
> typedef boost::shared_ptr<Foobar> FoobarPtr;
>
> void wrapped_do_something( FoobarPtr object ) {
> ...
> }
>
> class_<Foobar, FoobarPtr>( "Foobar" )
> .def( "do_something", &wrapped_do_something )
> ;
>
> Compiles fine, however when calling 'do_something' from Lua, it
> complains about not finding a matching overload. The first parameter is
> named "custom [N5boost10shared_ptrIN6FoobarEEE]" in the error message.
Did you #include <luabind/shared_ptr_converter.hpp>?
Peter
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2