Boost C++ Libraries: Ticket #12286: PMR flat_map from Boost Container does not compile https://svn.boost.org/trac10/ticket/12286 <p> Hello, </p> <p> PMR flat_map from Boost Container does not compile with GCC 6.1.0. </p> <p> The code: </p> <div class="wikipage" style="font-size: 80%"><p> Code highlighting: </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;boost/container/pmr/flat_map.hpp&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;boost/container/pmr/monotonic_buffer_resource.hpp&gt;</span><span class="cp"></span> <span class="k">using</span> <span class="k">namespace</span> <span class="n">boost</span><span class="o">::</span><span class="n">container</span><span class="o">::</span><span class="n">pmr</span><span class="p">;</span> <span class="kt">int</span> <span class="nf">main</span><span class="p">(</span><span class="kt">int</span> <span class="n">argc</span><span class="p">,</span> <span class="kt">char</span> <span class="o">*</span><span class="n">argv</span><span class="p">[])</span> <span class="p">{</span> <span class="k">static</span> <span class="k">const</span> <span class="kt">size_t</span> <span class="n">s</span> <span class="o">=</span> <span class="mi">4096</span><span class="p">;</span> <span class="kt">char</span> <span class="n">buffer</span><span class="p">[</span><span class="n">s</span><span class="p">];</span> <span class="n">monotonic_buffer_resource</span> <span class="n">r</span><span class="p">(</span><span class="n">buffer</span><span class="p">,</span> <span class="n">s</span><span class="p">);</span> <span class="n">flat_map</span><span class="o">&lt;</span><span class="kt">size_t</span><span class="p">,</span> <span class="kt">size_t</span><span class="o">&gt;</span> <span class="n">m</span><span class="p">(</span><span class="o">&amp;</span><span class="n">r</span><span class="p">);</span> <span class="n">m</span><span class="p">.</span><span class="n">emplace</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span> <span class="k">return</span> <span class="mi">0</span><span class="p">;</span> <span class="p">}</span> </pre></div></div></div><p> Compile with: </p> <p> g++ -std=c++14 -I./../../../Boost/boost_1_61_0/ -L./ -lboost_container ./main.cpp </p> <p> The error is in the attached file errors.log </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12286 Trac 1.4.3 Dmitry Varlamov <big.black.fox@…> Sun, 19 Jun 2016 10:45:23 GMT attachment set https://svn.boost.org/trac10/ticket/12286 https://svn.boost.org/trac10/ticket/12286 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">errors.log</span> </li> </ul> Ticket Ion Gaztañaga Sat, 25 Jun 2016 20:47:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12286#comment:1 https://svn.boost.org/trac10/ticket/12286#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 develop: </p> <p> <a class="ext-link" href="https://github.com/boostorg/container/commit/a52684beeafb507028fab1e650f570784d26462e"><span class="icon">​</span>https://github.com/boostorg/container/commit/a52684beeafb507028fab1e650f570784d26462e</a> </p> Ticket