newの失敗で例外を発生させない方法
operator newを定義する以外では、以下の方法しかないのか?
char *p = new(std::nothrow) char[2000000000];
std::set_new_handler()を使ってもうまくいかなかった。
operator newを定義する以外では、以下の方法しかないのか?
char *p = new(std::nothrow) char[2000000000];
std::set_new_handler()を使ってもうまくいかなかった。