|
Boost : |
Subject: Re: [boost] Variant2 review
From: Peter Dimov (pdimov_at_[hidden])
Date: 2019-04-07 17:03:55
Thank you, Phil, for your review.
Phil Endecott wrote:
> - I would love to have some way to get a warning or error if the double
> storage mode had been triggered, or to disable that mode (with an error).
I was thinking of addressing this by adding either
static constexpr bool variant<T...>::is_single_buffered();
or
static constexpr bool variant<T...>::is_double_buffered();
(not sure which spelling is better), so that you can static_assert that your
variants are never double-buffered.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk