I want to reset an object. Can I do it in the following way?
anObject->~AnObject(); anObject = new(anObject) AnObject(); // edit: this is not allowed: anO
If your object has sensible assignment semantics (and correct operator=), then *anObject = AnObject() makes more sense, and is easier to understand.