Boost C++ Libraries: Ticket #2313: multi_index_container::operator= should have by-value argument https://svn.boost.org/trac10/ticket/2313 <p> When a copy assignment operator is implemented simply by doing copy-and-swap, it should pass its argument by value, instead of doing the copy inside the body of the function, to allow the compiler to do copy elision. As was discussed at the Boost developer mailing list, <a class="ext-link" href="http://lists.boost.org/Archives/boost/2008/09/142106.php"><span class="icon">​</span>Improving the assignment operators of various Boost types</a>. </p> <p> So please consider the attached patch. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2313 Trac 1.4.3 niels_dekker Wed, 10 Sep 2008 09:18:10 GMT attachment set https://svn.boost.org/trac10/ticket/2313 https://svn.boost.org/trac10/ticket/2313 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">multi_index_container_assignment.patch</span> </li> </ul> Ticket Joaquín M López Muñoz Wed, 10 Sep 2008 18:57:15 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2313#comment:1 https://svn.boost.org/trac10/ticket/2313#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Joaquín M López Muñoz</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">multi_index</span> </li> </ul> Ticket Joaquín M López Muñoz Thu, 11 Sep 2008 07:13:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2313#comment:2 https://svn.boost.org/trac10/ticket/2313#comment:2 <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/48728" title="fixed #2313">[48728]</a>) fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2313" title="#2313: Bugs: multi_index_container::operator= should have by-value argument (closed: fixed)">#2313</a> </p> Ticket