Boost logo

Boost :

Subject: Re: [boost] [variant] Maintainer
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2015-07-02 14:39:17


On Sun, Jun 28, 2015 at 4:38 AM, Vicente J. Botet Escriba
<vicente.botet_at_[hidden]> wrote:

>
>> The abstractions I built on top of it might, since they are the ones who
>> attach meaning to the variant, but it is up to them to make those choices.
>> Likewise, I'm not considering implementing support for void and reference
>> types as alternatives.
>
> Could you tell us more about the rationale? it is because some wrappers as
> void_t and reference_wrapper<T> can be used instead?
>

reference_wrapper<T> can be used by the client, if that is what the
client wants. But reference_wrapper<T> doesn't work the same as T &,
so it shouldn't be used by variant to handle references.

Tony


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