Boost C++ Libraries: Ticket #12761: intrusive::set::swap doesn't swap the comparison function https://svn.boost.org/trac10/ticket/12761 <p> If you have two Boost intrusive set or multiset objets with a stateful comparison function, swapping them with the swap method doesn't seem to swap the state of their comparison functions. </p> <p> Is it normal? </p> <p> Using std::swap doesn't swap their comparison function either, which seems to suggest that set's and multiset's move assignment operator doesn't move the comparison function. </p> <p> However, it seems that set's and multiset's move constructor does copy the comparison function (by using its copy constructor, not its move constructor though). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12761 Trac 1.4.3 fdegros@… Mon, 27 Feb 2017 05:39:02 GMT <link>https://svn.boost.org/trac10/ticket/12761#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12761#comment:1</guid> <description> <p> Ping? Any idea or progress on this topic? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Tue, 28 Feb 2017 20:50:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12761#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12761#comment:2</guid> <description> <p> Thanks for the report and the ping. Yes, it's clearly a bug, I'd try to fix it ASAP. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Sun, 09 Apr 2017 19:39:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12761#comment:3 https://svn.boost.org/trac10/ticket/12761#comment:3 <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> This was fixed some weeks ago in commit: </p> <p> <a class="ext-link" href="https://github.com/boostorg/intrusive/commit/6510ac498e0f9e54bf2a962a703352dac54158d2"><span class="icon">​</span>https://github.com/boostorg/intrusive/commit/6510ac498e0f9e54bf2a962a703352dac54158d2</a> </p> <p> Thanks for the report. </p> Ticket