Fixes #161: ("polymorphic_allocator(memory_resource*) non-standard extension causes headache")

This commit is contained in:
Ion Gaztañaga
2020-08-31 13:37:11 +02:00
parent 438813726b
commit 0b297019ec
3 changed files with 10 additions and 6 deletions
-3
View File
@@ -25,9 +25,6 @@ void test_default_constructor()
void test_resource_constructor()
{
polymorphic_allocator<int> a(0);
BOOST_TEST(a.resource() == get_default_resource());
derived_from_memory_resource d;
polymorphic_allocator<int> b(&d);
BOOST_TEST(&d == b.resource());