Boost C++ Libraries: Ticket #4043: Lambda: Right-hand-side of compound assignment operators are stored by reference https://svn.boost.org/trac10/ticket/4043 <p> In the section "Storing bound arguments in lambda functions", the document says "The left argument of compound assignment operators (+=, *=, etc.) are stored as references to non-const". However, it actually stores both arguments as a reference. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4043 Trac 1.4.3 Takano Akio <aljee@…> Thu, 25 Mar 2010 11:59:34 GMT attachment set https://svn.boost.org/trac10/ticket/4043 https://svn.boost.org/trac10/ticket/4043 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> test case </p> Ticket Jeremiah Willcock Wed, 09 Jun 2010 00:33:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4043#comment:1 https://svn.boost.org/trac10/ticket/4043#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/62620" title="Changed compound assignment (and actually all binary operators) to ...">[62620]</a>) Changed compound assignment (and actually all binary operators) to copy their RHS arguments like the documentation said; added a test for this; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4043" title="#4043: Bugs: Lambda: Right-hand-side of compound assignment operators are stored by ... (closed: fixed)">#4043</a> </p> Ticket