Closed robUx4 closed 1 year ago
Using std::nothrow in a header risks breaking when included from a project that defines new to a different signature.
new
For example projects using a special version of new on Windows to detect memory leaks: https://learn.microsoft.com/en-us/cpp/c-runtime-library/find-memory-leaks-using-the-crt-library
Replaces #107 with a fix that is ABI compatible with previous versions.
Using std::nothrow in a header risks breaking when included from a project that defines
new
to a different signature.For example projects using a special version of new on Windows to detect memory leaks: https://learn.microsoft.com/en-us/cpp/c-runtime-library/find-memory-leaks-using-the-crt-library
Replaces #107 with a fix that is ABI compatible with previous versions.