Simplify dependencies dropping Boost.Core

This commit is contained in:
Ion Gaztañaga
2023-02-01 23:00:23 +01:00
parent 70f756960e
commit 552688c7fc
35 changed files with 282 additions and 263 deletions
+4 -5
View File
@@ -10,7 +10,6 @@
#include <boost/container/pmr/global_resource.hpp>
#include <boost/container/pmr/memory_resource.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/core/no_exceptions_support.hpp>
#include "derived_from_memory_resource.hpp"
@@ -91,15 +90,15 @@ void test_null_memory_resource()
#if !defined(BOOST_NO_EXCEPTIONS)
bool bad_allocexception_thrown = false;
BOOST_TRY{
BOOST_CONTAINER_TRY{
mr->allocate(1, 1);
}
BOOST_CATCH(std::bad_alloc&) {
BOOST_CONTAINER_CATCH(std::bad_alloc&) {
bad_allocexception_thrown = true;
}
BOOST_CATCH(...) {
BOOST_CONTAINER_CATCH(...) {
}
BOOST_CATCH_END
BOOST_CONTAINER_CATCH_END
BOOST_TEST(bad_allocexception_thrown == true);
#endif //BOOST_NO_EXCEPTIONS