Boost logo

Boost :

Subject: Re: [boost] Adding polymorphic_value to boost
From: Jonathan Coe (jonathanbcoe_at_[hidden])
Date: 2017-11-20 15:09:01


> On 20 Nov 2017, at 13:37, Peter Dimov via Boost <boost_at_[hidden]> wrote:
>
> Jonathan Coe wrote:
>> I'd like to propose adding the class-template `polymorphic_value` to boost.
>>
>> `polymorphic_value` is designed to allow the compiler to correctly generate special member functions for classes with polymorphic components (It's `any` with an interface).
>>
>> `polymorphic_value` has been proposed for standardisation in P0201 and has advanced through the Library Evolution group in Albuquerque (Nov 5-10). https://wg21.link/p0201
>
> Has the name "polymorphic_value" been bike-shedded already?
>
> It's a good name in principle, but not good from a usability point of view; too long, too hard to type without errors in the absence of autocompletion.
>
> - poly_value?
> - any_value?
> - basic_any?
>
> Also,
>
> - poly
>
> seems to be popular, but it's probably too short.
>

The name has been bike-shedded.
I agree it’s a little long but it conveys meaning pretty clearly to me.

> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


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