27 Dec
2007
27 Dec
'07
1:58 p.m.
Richard wrote:
In article <4772F58B.8080908@crystalclearsoftware.com>, Jeff Garland
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