Make sure test suite/examples/bench compile with exceptions disabled (exception-handling=off)

This commit is contained in:
Ion Gaztañaga committed 2020-10-22 01:12:59 +02:00
1 parent 03f030af69
commit 4bebeb2353
16 files changed
+399 -323

No files matched your search

+2 -1
View File
@@ -13,6 +13,7 @@
#include <boost/container/pmr/memory_resource.hpp>
#include <boost/container/vector.hpp>
#include <boost/container/throw_exception.hpp>
#include <cstdlib>
class memory_resource_logger
@@ -41,7 +42,7 @@ class memory_resource_logger
{
char *addr =(char*)std::malloc(bytes);
if(!addr){
throw std::bad_alloc();
boost::container::throw_bad_alloc();
}
allocation_info info;
info.address = addr;