diff --git a/doc/container.qbk b/doc/container.qbk index 24f4314..ed389d1 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -1338,6 +1338,14 @@ use [*Boost.Container]? There are several reasons for that: [section:release_notes Release Notes] +[section:release_notes_boost_1_75_00 Boost 1.75 Release] + +* New [classref boost::container::devector devector] container. +* Fixed bugs/issues: + * [@https://github.com/boostorg/container/issues/157 GitHub #157: ['"Add missing include"]]. + +[endsect] + [section:release_notes_boost_1_74_00 Boost 1.74 Release] * Fixed bugs/issues: diff --git a/include/boost/container/pmr/polymorphic_allocator.hpp b/include/boost/container/pmr/polymorphic_allocator.hpp index 8c04653..b3a1eb3 100644 --- a/include/boost/container/pmr/polymorphic_allocator.hpp +++ b/include/boost/container/pmr/polymorphic_allocator.hpp @@ -53,10 +53,9 @@ class polymorphic_allocator //! Throws: Nothing //! //! Notes: This constructor provides an implicit conversion from memory_resource*. - //! Non-standard extension: if r is null m_resource is set to get_default_resource(). polymorphic_allocator(memory_resource* r) - : m_resource(r ? r : ::boost::container::pmr::get_default_resource()) - {} + : m_resource(r) + { BOOST_ASSERT(r != 0); } //! Effects: Sets m_resource to //! other.resource(). diff --git a/test/polymorphic_allocator_test.cpp b/test/polymorphic_allocator_test.cpp index 10899ca..36f99c8 100644 --- a/test/polymorphic_allocator_test.cpp +++ b/test/polymorphic_allocator_test.cpp @@ -25,9 +25,6 @@ void test_default_constructor() void test_resource_constructor() { - polymorphic_allocator a(0); - BOOST_TEST(a.resource() == get_default_resource()); - derived_from_memory_resource d; polymorphic_allocator b(&d); BOOST_TEST(&d == b.resource());