[PATCH] D13080: [libc++] ~unique_ptr() should not set stored pointer to null

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 22 17:09:49 PDT 2015


dblaikie added a subscriber: dblaikie.
dblaikie added a comment.

I'd still be curious to see a stronger justification from the standard
about this.

I know you mentioned/quoted the definition of ~unique_ptr in the standard -
but I'm not sure that is meant to imply observable behavior during
destruction (though I could be wrong). Is there anything in the standard
about accessing objects while their dtors are executing?


http://reviews.llvm.org/D13080





More information about the cfe-commits mailing list