
18 Oct
2005
18 Oct
'05
8:50 p.m.
On 10/18/05, Fernando Cacciola <fernando_cacciola@hotmail.com> wrote:
David Abrahams wrote:
Anthony Williams <anthony_w.geo@yahoo.com> writes:
How's this for a radical thought --- optional<T> should not be assignable from T. That way, it doesn't matter whether T is a reference, or not.
There's at least some precedent for types that are "immutable except for copy assignment."
The assignment from T is really a kind of mutating operation.
Indeed. I'm leaning fast into dropping assignment form T. That definitely solves the reference binding issues.
[snip] Please review this dicsussion thread from 2003 < http://aspn.activestate.com/ASPN/Mail/Message/boost/1788454> before discarding assignment from T. - Mat