Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-03-01 13:24:04

Joao Abecasis <jpabecasis_at_[hidden]> writes:

> Fernando Cacciola wrote:
>> If I change the code now to use T's operator=(), assignment of
>> optional<T&> will have a _radically_ different semantics. A correct
>> one, that's for sure, but end user code might be fundamentally
>> impacted.
> Maybe boost::reference_wrapper can be used internally to wrap reference
> types and solve this issue.

You might want to look at how this thread turned out.

I never actually followed through on my threat to make the change, but
I probably should.

Dave Abrahams
Boost Consulting

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