
31 Mar
2011
31 Mar
'11
10:59 a.m.
At Thu, 31 Mar 2011 12:09:37 +0200, Mathias Gaunard wrote:
On 30/03/2011 17:09, Alexandr Sterligov wrote:
Is there any interest in a library of STL-compliant containers (vector, deque, map, set, list) with copy-on-write?
Given that Boost already provides an implementation of STL-compliant containers with several C++0x features, in particular move semantics, I don't really see the point.
IMO it isn't possible to really make that work anyway since STL containers expose references to their elements *and* make guarantees about iterator stability and element layout. For example, if v is a vector and I do v[0] = 1; it's not allowed to change the address of v[1] -- Dave Abrahams BoostPro Computing http://www.boostpro.com