
21 Jan
2013
21 Jan
'13
2:29 p.m.
On Mon, Jan 21, 2013 at 5:39 PM, Antony Polukhin <antoshkka@gmail.com> wrote: [snip]
II: Set operand.p_ to NULL, add BOOST_ASSERT in get operations + good performance + provides noexcept guarantee for move constructor + optimization will be used even if varinat has no type with trivial default constructor + easy to implement - triggers an assert when user tries to reuse moved object - adds an empty state to the recursive_wrapper
I'd prefer this option. IMHO, one of the major points of move semantics is optimization and moved-from objects are as good as dead anyway; I wouldn't even try to revive a moved-from object with assignment. But this is a breaking change (is it?), so it should have a prominent note in release notes.