|
Boost : |
Subject: Re: [boost] [smart ptr] Any interest in copy-on-write pointer for C++11?
From: Peter Dimov (lists_at_[hidden])
Date: 2013-02-09 17:07:00
Ralph Tandetzky wrote:
> On 02/09/2013 05:25 PM, Peter Dimov wrote:
> > Ralph Tandetzky wrote:
> >> I would really like to get feedback on the design of cow_ptr<T>
> >> <https://github.com/ralphtandetzky/cow_ptr.git> rather than discussing,
> >> if copy-on-write is a useful pattern in general.
> >
> > Looks pretty good, but I don't like the name much.
>
> What's wrong with the name?
Well.
1. It's an acronym.
2. ... but uses lowercase.
3. It's a farm animal.
4. ... enticing you to use member function names such as "moo".
5. It is sufficiently descriptive for one of the primary use cases
(eliminating redundant expensive copies) but not for the other (a
polymorphic value pointer).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk