
8 Jan
2013
8 Jan
'13
2:45 a.m.
On 1/7/2013 12:14 PM, Paul Smith wrote:
A recursive_wrapper is not a pointer. It's a value-like wrapper that is assumed to always contain a valid object. The move constructor should leave the moved-from recursive_wrapper in a valid state, which precludes nullifying it.
Paul, I think you are confused about move semantics. Joel and Hartmut are right. Nobody should ever be seeing a moved-from object. Move constructors and assignment operators exist precisely to enable this kind of optimization. -- Eric Niebler BoostPro Computing http://www.boostpro.com