
7 Apr
2019
7 Apr
'19
5:03 p.m.
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.