Hacker News new | ask | show | jobs
by tines 3945 days ago
std::string isn't reference-counted in a conforming implementation (that doesn't do atomic ops just for fun).
1 comments

well C++11 strings are just "reallocate when you look at them funny". Or you use shared_ptr and are back to square 1.