Boost C++ Libraries: Ticket #12459: Support polymorphic_allocator in boost::unordered_map/set https://svn.boost.org/trac10/ticket/12459 <p> Right now boost::unordered_map/set require rebind struct in allocator, which is absent in polymorphic_allocator. This makes it impossible to use polymorphic_allocator "as is" in unordered containers. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12459 Trac 1.4.3 anonymous Thu, 15 Sep 2016 11:06:51 GMT <link>https://svn.boost.org/trac10/ticket/12459#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12459#comment:1</guid> <description> <p> For now, you might be able to get it work by defining BOOST_UNORDERED_USE_ALLOCATOR_TRAITS to 1. That will tell it to use std::allocator_traits. </p> </description> <category>Ticket</category> </item> <item> <author>skhoroshavin@…</author> <pubDate>Thu, 15 Sep 2016 20:53:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12459#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12459#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/12459#comment:1" title="Comment 1">anonymous</a>: </p> <blockquote class="citation"> <p> For now, you might be able to get it work by defining BOOST_UNORDERED_USE_ALLOCATOR_TRAITS to 1. That will tell it to use std::allocator_traits. </p> </blockquote> <p> Thanks for pointing, it solved the issue. However I think it would be much better if this was either documented or enabled by default for compilers supporting it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 15 Sep 2016 23:14:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12459#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12459#comment:3</guid> <description> <p> The "for now" was to suggest that this is a temporary workaround. I can't do anything at the moment because we're at the end of a release cycle. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 30 Oct 2016 23:25:13 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12459#comment:4 https://svn.boost.org/trac10/ticket/12459#comment:4 <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> Should be fixed in master, in this merge: </p> <p> <a class="ext-link" href="https://github.com/boostorg/unordered/commit/8a0592a35d5987fd33b49f2c63838e82f4f63be6"><span class="icon">​</span>https://github.com/boostorg/unordered/commit/8a0592a35d5987fd33b49f2c63838e82f4f63be6</a> </p> Ticket sergey.korytnik@… Mon, 09 Jan 2017 16:24:19 GMT <link>https://svn.boost.org/trac10/ticket/12459#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12459#comment:5</guid> <description> <p> The same problem with boost::multi_index class. It expects Allocator::rebind struct. </p> </description> <category>Ticket</category> </item> </channel> </rss>