Boost C++ Libraries: Ticket #12190: Intrusive List + Flat Map combination crashes https://svn.boost.org/trac10/ticket/12190 <p> Please consider the following code, this crashes with slist but works just fine if I replace slist with list. Also flat_map crashes but std::map works fine. Am I doing something gross or is there a bug here? </p> <p> #include &lt;iostream&gt; #include &lt;boost/container/flat_map.hpp&gt; #include &lt;map&gt; <em>#include &lt;boost/intrusive/list.hpp&gt; #include &lt;boost/intrusive/slist.hpp&gt; </em></p> <p> using namespace boost::intrusive; </p> <p> struct m : public slist_base_hook&lt;&gt; { </p> <blockquote> <p> int n; public: </p> <blockquote> <p> m(int k) : n(k) { } </p> </blockquote> </blockquote> <p> }; </p> <p> int main() { </p> <blockquote> <p> boost::container::flat_map&lt;int, slist&lt;m, cache_last&lt;true&gt; &gt; &gt; c1; std::map&lt;int, slist&lt;m, cache_last&lt;true&gt; &gt; &gt; c2; m* m1 = new m(22); c1<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a>.push_back(*m1); </p> </blockquote> <blockquote> <p> m* tt = new m(99); c2<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a>.push_back(*tt); </p> </blockquote> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12190 Trac 1.4.3 Ion Gaztañaga Thu, 12 May 2016 23:03:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12190#comment:1 https://svn.boost.org/trac10/ticket/12190#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 develop branch in commit with SHA-1: cd14ffcf1f2b01f7ab63b44d9208105c1c55b09b </p> <ul><li>Fixed Boost Trac <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/12190" title="#12190: Bugs: Intrusive List + Flat Map combination crashes (closed: fixed)">#12190</a> </li></ul> Ticket