Boost C++ Libraries: Ticket #8175: Make boost::container::allocator_arg_t a typedef of std::allocator_arg_t when available https://svn.boost.org/trac10/ticket/8175 <p> Currently, boost::container::allocator_arg_t is always defined as a simple, empty struct. It would be nice if it were instead a typedef of std::allocator_arg_t when the latter is available. Right now, I have to have a separate constructor overloads for each type, with an #if guard around the std::allocator_arg_t overload. It would be much nicer if I could just use boost::container::allocator_arg_t, and have it be automatically usable with std::scoped_allocator if supported by the implementation. </p> <p> Thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8175 Trac 1.4.3 Ion Gaztañaga Fri, 05 Aug 2016 22:57:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8175#comment:1 https://svn.boost.org/trac10/ticket/8175#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Reviewing old bugs. Since commit (included in Boost 1.58): </p> <p> <a class="ext-link" href="https://github.com/boostorg/container/commit/7635eba375c2eda18307db78515cce0adc76c9c7"><span class="icon">​</span>https://github.com/boostorg/container/commit/7635eba375c2eda18307db78515cce0adc76c9c7</a> </p> <p> allocator_arg_t is a typedef of const std::allocator_arg_t, which allows forward declaration of the standard allocator without including the standard header, and interoperability with std types. </p> <p> Thanks for the report and sorry for the long delay to implement and document the solution. </p> Ticket