Fix issue #1968. Don't discard return value from "new" in C++17.

This commit is contained in:
Rasmus Munk Larsen 2020-09-11 18:17:08 -07:00
parent 7c5d48f313
commit 5636f80d11

View File

@ -82,7 +82,7 @@ inline void throw_std_bad_alloc()
//
new int[huge];
#else
::operator new(huge);
void* unused = ::operator new(huge);
#endif
#endif
}