Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2004-03-11 16:14:25


"David Abrahams" <dave_at_[hidden]> wrote in message
news:u1xnzkubx.fsf_at_boost-consulting.com...
> "Edward Diener" <eddielee_at_[hidden]> writes:
>
> > Is there any problem with using shared_ptr and passing an instance of it
to
> > a function in another shared library, such as a DLL under Windows ?
>
> Works beautifully, even if the two DLLs are using different heaps.
>
> > Does the reference count get updated correctly when the copy is
> > passed to a DLL function, so that when the last shared_ptr in either
> > the original module or the DLL goers out of scope, the actual
> > pointer is correctly deleted ?
>
> Yep.

Great to hear. Thanks !


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net