mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-28 06:44:10 +08:00
Fix issue #1968. Don't discard return value from "new" in C++17.
This commit is contained in:
parent
7c5d48f313
commit
5636f80d11
@ -82,7 +82,7 @@ inline void throw_std_bad_alloc()
|
||||
//
|
||||
new int[huge];
|
||||
#else
|
||||
::operator new(huge);
|
||||
void* unused = ::operator new(huge);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user