Boost logo

Boost :

Subject: Re: [boost] [smart ptr] Any interest in copy-on-write pointer for C++11?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-02-08 15:28:46

On 08/02/13 18:35, Jeffrey Yasskin wrote:
> WebKit has a class vaguely like this for your case #2:
> used at
> Semantically every copy is a real copy, and, contrary to Mathias'
> assertion, couldn't be replaced by a move in C++11, but they want to
> share identical values when doing so is cheap.

If you want identical values to use the same resource, you should use a
flyweight factory.

Boost list run by bdawes at, gregod at, cpdaniel at, john at