Код: Выделить всё
#include
#include
#include
struct TestNew {
void* operator new(std::size_t, std::nothrow_t) noexcept { // Doesn't call the constructor
// void* operator new(std::size_t, std::nothrow_t) { // Unexpected call to constructor
std::cout < /p>
my undict an the no no aexcept < /press> < /p>
. std :: nothrow_t Подробнее здесь: https://stackoverflow.com/questions/797 ... -a-nullptr
Мобильная версия