1 Mar
2019
1 Mar
'19
6:05 p.m.
AMDG On 3/1/19 9:50 AM, Robert Ramey via Boost wrote:
C++ starts from the idea that every instance should be mutable and hence gives you an assignment operator by default. The design discussions around variant (expected, outcome, ...) presume that this operation must be implemented. I question this. Not only for variant, but for many other C++ data types.
If you want a variant without assignment, it's called const variant<> In Christ, Steven Watanabe