Is it legal to compare dangling pointers?
Introduction: The first issue is whether it is legal to use the value of p at all. After a has been destroyed, p acquires what is known as an invalid pointer value. Quote from N4430 (for discussion of N4430’s status see the “Note” below): When the end of the duration of a region of storage … Read more