From: Kim G. <kim...@gm...> - 2010-10-21 19:18:00
|
Hi Dean, On Thu, Oct 21, 2010 at 06:34, Dean Michael Berris <mik...@gm...> wrote: > >> So, I think there's merit to not expecting COW from std::string. >> > > Yup, but I haven't been writing cpp-netlib to expect COW. I just think > that removing copies can be done later on. ;) Right, I just wanted to make sure you were aware of the reputation of std::string with COW. It's not great ;-) That said, maybe it's not such a bad idea. Multiple threads make it harder to get right, but perhaps not intrinsically worse than heap allocation + copy. I'll have to mull on that for a while. Cheers, - Kim |