Re: Remove Luabind ownership on C++ pointer?
eduard mueller <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 30, 2010 at 16:56, neosettlers <[email protected]> wrote: > Technique "shared_ptr" > > I like this method but so far, I can’t make it work. Even when using shared_ptr its still go there on GC: When using shared_ptrs, you have to use them everywhere to transfer/keep track of the objects lifetime correctly. Using something which stores the reference count in the object itself, like boost::intrusive_ptr may be the better choice then. But this really depends on what you actually do with the object... ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user