Visual Studio Code – Multiple calls to the delete when destructors throw exceptions
The code above works if compiled with Visual Studio. If the destructor throws an exception the operator delete is not called. If the destructor doesn't throw an exception the operator delete is called. But the same code causes Segmentation fault…