Subject: Re: [boost] [string] proposal
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2011-01-21 11:52:31
> >> 2. In the case that you do have strings copied around, consider the
> >> case in multi-threaded applications where you have different threads
> >> running on different cores.
> > Copying the string data outweighs the reference count update because
> > of the allocation.
> So I guess I can be convinced that ref counting in strings would be just
> I can't wait to get that so that I can make cpp-netlib just use these
> smart strings throughout. :D
If it's just for a std::string compatible class being implemented the way
you like it (COW, value semantics, reference counting, or plain old data
copying, etc.), you might want to look at flex_string, a policy based
std::string equivalent (here:
, also part of wave).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk