
1 Sep
2006
1 Sep
'06
9:01 a.m.
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.