Boost logo

Boost :

Subject: Re: [boost] [smart ptr] Any interest in copy-on-write pointer for C++11?
From: Ralph Tandetzky (ralph.tandetzky_at_[hidden])
Date: 2013-02-08 13:19:40


On 02/08/2013 06:35 PM, Jeffrey Yasskin wrote:
> WebKit has a class vaguely like this for your case #2:
> https://code.google.com/p/chromium/codesearch/#chrome/src/third_party/WebKit/Source/WebCore/rendering/style/DataRef.h
> used at https://code.google.com/p/chromium/codesearch/#chrome/src/third_party/WebKit/Source/WebCore/rendering/style/RenderStyle.h&rcl=1360310731&l=137.
> 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.
>
> On Fri, Feb 8, 2013 at 7:16 AM, Ralph Tandetzky
> <ralph.tandetzky_at_[hidden]> wrote:
>> Hi,
>>
>> is there any interest in a copy-on-write pointer implementation?

Thank you for pointing this out.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk