Re: [C++ PATCH] Implement P0722R3, destroying operator delete.

2018-11-13 Thread Jonathan Wakely
On Tue, 13 Nov 2018 at 04:39, Jason Merrill wrote: > Tested x86_64-pc-linux-gnu, applying to trunk. Can someone from the > libstdc++ team clean up my libsupc++ change if it should be formatted > differently? Looks fine to me, thanks.

[C++ PATCH] Implement P0722R3, destroying operator delete.

2018-11-12 Thread Jason Merrill
A destroying operator delete takes responsibility for calling the destructor for the object it is deleting; this is intended to be useful for sized delete of a class allocated with a trailing buffer, where the compiler can't know the size of the allocation, and so would pass the wrong size to the n