|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-12-22 16:26:19
Rene Rivera <grafik.list_at_[hidden]> writes:
> John Maddock wrote:
>
>> date_time - one API (get_month_map_ptr) returns a shared_ptr, I'm pretty
>> sure that shared_ptr's internal use-count memory management will get tripped
>> up here unless caller and callee share the same runtime.
>
> I thought that the smart_ptr classes use the remote deleter concept for both
> the pointee and the count?? ...looking at code... Well it seems it doesn't use
> a deleter for the count :-( I would think that's a bug??
>
No, the virtual destructor makes it OK. Caller and callee do not
need the same runtime.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk