forked from boostorg/container
Make sure test suite/examples/bench compile with exceptions disabled (exception-handling=off)
This commit is contained in:
1 parent
03f030af69
commit
4bebeb2353
16 files changed
+399
-323
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user