Discarding shared_ptrs

Simon Pickles <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Hi,

I am passing boost::shared_ptr<T> to Lua functions, which works well.

Unfortunately, the shared_ptr then keeps an extra use_count (held in the 
lua table), even if the function is finished. How do I release this usage?

Set to nil? Use a Policy? Pass some other sort of pointer? I'd love to 
be able to use the functionality of boost::weak_ptr in lua!

Any advice welcome

thanks

Simon



------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.