Boost logo

Boost :

Subject: Re: [boost] [variant2] Need rationale for never-empty guarantee
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2019-03-01 18:05:39


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

Boost list run by bdawes at, gregod at, cpdaniel at, john at