Problem with boost::shared_ptr auto conversion
Daniel Herb <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm pretty new to luabind and got a problem with boost::shared_ptr:
If you have the following functions:
Foo getFoo();
void setFoo(boost::shared_ptr<Foo> foo);
which are registered with luabind:
luabind::class_<Foo, boost::shared_ptr<Foo> >("Foo"),
luabind::def("getFoo", &getFoo),
luabind::def("setFoo", &setFoo)
this lua-code doesn't work:
setFoo(getFoo());
Why? All other conversions are handled completely automatically (which is
pretty nice).
Have I missed something?
Thanks
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user