Boost C++ Libraries: Ticket #12749: container::pmr::polymorphic_allocator compilation error https://svn.boost.org/trac10/ticket/12749 <p> Compilation of minimal code using container::pmr::polymorphic_allocator with std::map or boost::container::map or std::unordered_map results in compiler error on VC++2015U3, Apple clang and g++6.2: </p> <p> \boost\container\pmr\polymorphic_allocator.hpp(109): error C2672: 'boost::container::container_detail::dispatch_uses_allocator': no matching overloaded function found. </p> <p> copying this-&gt;resource() into a local variable and passing the variable to container_detail::dispatch_uses_allocator resolves the problem for std::map and std::unordered_map cases, but the error remains with boost::container::map. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12749 Trac 1.4.3 Sergey Korytnik <sergey.korytnik@…> Wed, 11 Jan 2017 20:58:42 GMT attachment set https://svn.boost.org/trac10/ticket/12749 https://svn.boost.org/trac10/ticket/12749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">BoostContainerPmrCompilationError_BoostMap.cpp</span> </li> </ul> Ticket Ion Gaztañaga Thu, 12 Jan 2017 13:51:38 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12749#comment:1 https://svn.boost.org/trac10/ticket/12749#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> Thanks for the report. Fixed in commit: </p> <p> <a class="ext-link" href="https://github.com/boostorg/container/commit/79f59776882beb77db963fb49607082faa78c171"><span class="icon">​</span>https://github.com/boostorg/container/commit/79f59776882beb77db963fb49607082faa78c171</a> </p> Ticket Sergey Korytnik <sergey.korytnik@…> Thu, 12 Jan 2017 18:40:33 GMT <link>https://svn.boost.org/trac10/ticket/12749#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12749#comment:2</guid> <description> <p> Thank you very much for an instant fix of the problem. I've tested the fix on all mentioned above compilers and it works perfectly! </p> </description> <category>Ticket</category> </item> </channel> </rss>