Merge pull request #56 from LeonineKing1199/feature/allocator-traits

Replace internal implementation of `allocation_traits` with Core's
This commit is contained in:
Peter Dimov
2021-12-08 01:23:02 +02:00
committed by GitHub
2 changed files with 11 additions and 446 deletions

View File

@@ -213,7 +213,15 @@ void test_allocator2()
BOOST_TEST(!traits::propagate_on_container_move_assignment::value);
BOOST_TEST(!traits::propagate_on_container_swap::value);
BOOST_TEST(!traits::is_always_equal::value);
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
// conditionally compile this assertion as all C++03 emulations of expression
// SFINAE are broken one way or another and the benefits of using Core's
// `allocator_traits` outweigh the costs of breaking this kind of code (i.e.
// inheriting SOCCC via a base)
//
BOOST_TEST(call_select<allocator>() == 1);
#endif
}
// allocator 3