From 5da699b3852acbf083fbbd13b2a06e9cce6f3634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 11 Jun 2026 21:23:25 +0200 Subject: [PATCH] Remove mention to constructible_with_allocator_suffix/prefix --- doc/container.qbk | 16 +--------------- include/boost/container/scoped_allocator.hpp | 4 ---- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/doc/container.qbk b/doc/container.qbk index 61f35eb..ae59b5b 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -2400,16 +2400,7 @@ elements' elements, and so on. [*Boost.Container] implements its own [classref boost::container::scoped_allocator_adaptor scoped_allocator_adaptor] class and [*backports this feature also -to C++03 compilers]. Due to C++03 limitations, in those compilers -the allocator propagation implemented by `scoped_allocator_adaptor::construct` functions -will be based on traits ([classref boost::container::constructible_with_allocator_suffix constructible_with_allocator_suffix] -and [classref boost::container::constructible_with_allocator_prefix constructible_with_allocator_prefix]) -proposed in [@http://www.open-std.org/jtc1/sc22/WG21/docs/papers/2008/n2554.pdf -N2554: The Scoped Allocator Model (Rev 2) proposal]. In conforming C++11 compilers or compilers supporting SFINAE -expressions (when `BOOST_NO_SFINAE_EXPR` is NOT defined), traits are ignored and C++11 rules -(`is_constructible::value` and -`is_constructible::value`) -will be used to detect if the allocator must be propagated with suffix or prefix allocator arguments. +to C++03 compilers]. [endsect] @@ -2532,11 +2523,6 @@ details are: [classref boost::container::allocator_arg_t allocator_arg_t] as the first argument and [classref boost::container::pmr::memory_resource memory_resource*] as the second argument. -[*Note:] ['In C++03 compilers, it is required that the programmer specializes as `true` -[classref boost::container::constructible_with_allocator_suffix constructible_with_allocator_suffix] or -[classref boost::container::constructible_with_allocator_prefix constructible_with_allocator_prefix] -as in C++03 there is no way to automatically detect the chosen option at compile time. If -no specialization is done, [*Boost.Container] assumes the suffix option]. [doc_pmr_ShoppingList_hpp] diff --git a/include/boost/container/scoped_allocator.hpp b/include/boost/container/scoped_allocator.hpp index 914f118..55c88fc 100644 --- a/include/boost/container/scoped_allocator.hpp +++ b/include/boost/container/scoped_allocator.hpp @@ -790,10 +790,6 @@ class scoped_allocator_adaptor //! OUTERMOST_ALLOC_TRAITS(*this):: construct(OUTERMOST(*this), p, allocator_arg, //! inner_allocator(), std::forward(args)...). //! - //! [Note: In compilers without advanced decltype SFINAE support, is_constructible can't - //! be implemented so that condition will be replaced by - //! constructible_with_allocator_prefix::value. -end note] - //! //! 3) Otherwise, if uses_allocator::value is true and //! is_constructible:: value is true, calls //! OUTERMOST_ALLOC_TRAITS(*this):: construct(OUTERMOST(*this), p,