Boost C++ Libraries: Ticket #7578: boost::any missing free swap function https://svn.boost.org/trac10/ticket/7578 <p> Given that a free swap function is the "official" interface used by generic algorithms, this is a rather shocking omission (though I know the status of swap wasn't settled at the time of any's design). Suggestion: add </p> <pre class="wiki">friend void swap(any&amp; x, any&amp; y) { x.swap(y); } </pre><p> to the body of any and update the docs accordingly. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7578 Trac 1.4.3 Steven Watanabe Thu, 14 Feb 2013 18:43:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7578#comment:1 https://svn.boost.org/trac10/ticket/7578#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82887" title="Add free swap. Fixes #7578.">[82887]</a>) Add free swap. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7578" title="#7578: Bugs: boost::any missing free swap function (closed: fixed)">#7578</a>. </p> Ticket viboes Fri, 15 Feb 2013 07:22:42 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/7578#comment:2 https://svn.boost.org/trac10/ticket/7578#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Shouldn't this function be documented? </p> Ticket Steven Watanabe Fri, 15 Feb 2013 18:07:11 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7578#comment:3 https://svn.boost.org/trac10/ticket/7578#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82908" title="Document free swap. Fixes #7578.">[82908]</a>) Document free swap. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7578" title="#7578: Bugs: boost::any missing free swap function (closed: fixed)">#7578</a>. </p> Ticket