[Boost-bugs] [Boost C++ Libraries] #2902: Assignment within condition expression warning

Subject: [Boost-bugs] [Boost C++ Libraries] #2902: Assignment within condition expression warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-01 10:10:16


#2902: Assignment within condition expression warning
---------------------------------+------------------------------------------
 Reporter: pete_at_[hidden] | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.38.0 | Severity: Cosmetic
 Keywords: |
---------------------------------+------------------------------------------
 In many places in my own code I get the following warning from Microsoft
 compilers:

 <boost\spirit\home\qi\detail\string_parse.hpp> line 22 : warning C4706:
 assignment within conditional expression

 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.

 An alernative - moving the assignment inside the loop - has the potential
 for a slight performance loss - an extra iterator deference.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2902>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC