|
Boost : |
From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2004-09-20 13:02:28
Maxim Yegorushkin wrote:
[...]
> Here is the link: http://conststring.sourceforge.net/
"The mutability of std::basic_string<> and its interface do not allow
implementers to make it a lightweight value object with cheap copy
operation through string representation sharing and copy-on-write
technique while maintaining thread safety."
This claim borders on blatant FUD. Claims to the extent that std::
string is sorta "less thread-safe then char[]" don't hold water
because there isn't non-const overload of operator[] for char[].
Or am I just missing something?
regards,
alexander.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk