$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [submission] STL-compliant containers with copy-on-write
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-03-31 06:59:05
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