
17 Oct
2005
17 Oct
'05
1:17 p.m.
Joel de Guzman wrote:
No. Under the "behave as a reference" model, references should bind only on construction. Everything else is assignment to the referenced object. No rebind.
Cool. This eliminates some problematic cases. But now consider variant<X&, Y> v( x ); v = y; // assigns y to x What if Y == nil? Should v = nil(); assign nil() to x?