Boost C++ Libraries: Ticket #2902: Assignment within condition expression warning https://svn.boost.org/trac10/ticket/2902 <p> In many places in my own code I get the following warning from Microsoft compilers: </p> <p> &lt;boost\spirit\home\qi\detail\string_parse.hpp&gt; line 22 : warning C4706: assignment within conditional expression </p> <p> Of course on this occasion the assignment is safe and intended. However it is not a warning that we feel comfortable disabling globally. Hence it would be nice if the warning could be push'n'pop-ed inside Boost code to save client workarounds. </p> <p> An alernative - moving the assignment inside the loop - has the potential for a slight performance loss - an extra iterator deference. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2902 Trac 1.4.3 Hartmut Kaiser Mon, 01 Jun 2009 14:56:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2902#comment:1 https://svn.boost.org/trac10/ticket/2902#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/53540" title="Spirit: refactored loop to avoid warning about assignment in ...">[53540]</a>) Spirit: refactored loop to avoid warning about assignment in conditional expression (fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2902" title="#2902: Bugs: Assignment within condition expression warning (closed: fixed)">#2902</a>) </p> Ticket