Boost C++ Libraries: Ticket #10135: [container] flat_map::insert() is ambiguous if used with pair that requires conversion https://svn.boost.org/trac10/ticket/10135 <p> The following is a no go it seems: </p> <p> boost::container::flat_map&lt; int, int &gt; fm; fm.insert( std::make_pair( 0u, 0 ) ); </p> <p> Because the pair has to be converted, but it can be converted to either std::pair&lt;&gt; or container::container_details::pair&lt;&gt;. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10135 Trac 1.4.3 Ion Gaztañaga Mon, 23 Jun 2014 20:53:58 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10135#comment:1 https://svn.boost.org/trac10/ticket/10135#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">duplicate</span> </li> </ul> <p> Thanks for the report. This is related to bug <a class="new ticket" href="https://svn.boost.org/trac10/ticket/10071" title="#10071: Bugs: [container] flat_map::insert() is ambiguous if used with initializer lists (new)">#10071</a>, merging both issues. </p> Ticket