Boost C++ Libraries: Ticket #2311: any::operator= should have by-value argument https://svn.boost.org/trac10/ticket/2311 <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/2311 Trac 1.4.3 niels_dekker Wed, 10 Sep 2008 09:14:54 GMT attachment set https://svn.boost.org/trac10/ticket/2311 https://svn.boost.org/trac10/ticket/2311 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">any_assignment.patch</span> </li> </ul> Ticket nasonov Mon, 13 Oct 2008 09:54:11 GMT type changed https://svn.boost.org/trac10/ticket/2311#comment:1 https://svn.boost.org/trac10/ticket/2311#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> <p> This is not a bug, this is a feature request. </p> Ticket nasonov Thu, 04 Dec 2008 22:22:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2311#comment:2 https://svn.boost.org/trac10/ticket/2311#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/50120" title="Fixes #2311: any::operator= should have by-value argument">[50120]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2311" title="#2311: Feature Requests: any::operator= should have by-value argument (closed: fixed)">#2311</a>: any::operator= should have by-value argument </p> Ticket nasonov Thu, 04 Dec 2008 22:31:04 GMT <link>https://svn.boost.org/trac10/ticket/2311#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2311#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/50122" title="Fixes #2311: any::operator= should have by-value argument">[50122]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2311" title="#2311: Feature Requests: any::operator= should have by-value argument (closed: fixed)">#2311</a>: any::operator= should have by-value argument </p> </description> <category>Ticket</category> </item> <item> <dc:creator>nasonov</dc:creator> <pubDate>Thu, 04 Dec 2008 22:32:15 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/2311#comment:4 https://svn.boost.org/trac10/ticket/2311#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.37.0</span> → <span class="trac-field-new">Boost 1.38.0</span> </li> </ul> Ticket niels_dekker Thu, 04 Dec 2008 22:37:27 GMT <link>https://svn.boost.org/trac10/ticket/2311#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2311#comment:5</guid> <description> <p> Thank you very much, Alexander! I just double-checked, it looks fine to me. </p> </description> <category>Ticket</category> </item> </channel> </rss>