|
Boost : |
Subject: Re: [boost] [smart ptr] Any interest in copy-on-write pointer forC++11?
From: Ralph Tandetzky (ralph.tandetzky_at_[hidden])
Date: 2013-02-13 06:45:14
On 02/11/2013 10:12 PM, Jeffrey Lee Hellrung, Jr. wrote:
> On Mon, Feb 11, 2013 at 12:01 PM, Ralph Tandetzky <
> ralph.tandetzky_at_[hidden]> wrote:
>
>>
>> Nice idea though. write_ptr<T> would behave like value_ptr<T>
> Not as I understand it; write_ptr would behave similar to unique_ptr, i.e.,
> it would be move-only.
Agreed. That makes more sense for client code.
>> and read_ptr<T> would behave like shared_ptr<T const> with the additional
>> ability to return write_ptrs and being constructible from an rref to
>> write_ptr.
> Right.
Thanks,
Ralph
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk