Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2007-12-27 08:58:58


Richard wrote:
> In article <4772F58B.8080908_at_[hidden]>,
> Jeff Garland <jeff_at_[hidden]> writes:
>
>> The new is NOT superfluous. The constructor of std::locale takes a pointer to
>> a reference counted facet -- effectively taking ownership of the memory.
>
> Does it call delete on it?

Yes -- there's an internal reference count in the facet so that facets can be
shared by multiple streams.

Jeff


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