Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-09-01 05:01:24

Gregory Dai wrote:
>> Have I got that right?
> Well, not completely perhaps. E.g., at least if the target is a
> std::string of size=0, the resultant std::string may well be
> reference-counted and shared by multiple threads.

Can you explain some more? Are you saying that if two unrelated threads
each default construct a string (or maybe construct a zero length string?)
then they will be entangled by reference counting?

Thanks, John.

Boost list run by bdawes at, gregod at, cpdaniel at, john at