
1 Mar
2005
1 Mar
'05
6:24 p.m.
Joao Abecasis <jpabecasis@zmail.pt> 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. http://tinyurl.com/57axt =(http://news.gmane.org/find-root.php?message_id=%3c200212151356.42623.gregod%...) I never actually followed through on my threat to make the change, but I probably should. -- Dave Abrahams Boost Consulting www.boost-consulting.com