|
Boost : |
Subject: Re: [boost] Variant2 review
From: Nevin Liber (nevin_at_[hidden])
Date: 2019-04-11 16:16:18
On Mon, Apr 8, 2019 at 12:55 PM Peter Dimov via Boost <boost_at_[hidden]>
wrote:
> Andrzej Krzemienski wrote:
>
> > Such thing could be achieved if the behavior of variant's assignment and
> > emplacement was controlled by a type trait.
>
> This can't work in general.
>
One thing you could do is have a magic alternative in the typelist which
controls this behavior. monostate is already a little magical in this
design, so there is precedent.
> --
> Nevin ":-)" Liber <mailto:nevin_at_[hidden]
> <nevin_at_[hidden]>> +1-847-691-1404
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk