
1 Mar
2005
1 Mar
'05
5:25 p.m.
"Joao Abecasis" <jpabecasis@zmail.pt> escribió en el mensaje news:42249F77.7080402@zmail.pt...
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.
How? We're not talking about an implementation problem here; this is about the "correct" behaviour and whether is ok to change to it given the potential impact on user programs. Fernando Cacciola