Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-10-17 08:17:45

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?

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