Re: [Boost-bugs] [Boost C++ Libraries] #8403: VC++ 2012 compiler warning C4127: conditional expression is constant

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8403: VC++ 2012 compiler warning C4127: conditional expression is constant
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-07 11:20:47


#8403: VC++ 2012 compiler warning C4127: conditional expression is constant
------------------------------------------------------+---------------------
  Reporter: Volker Schöch <vschoech@…> | Owner: barendgehrels
      Type: Support Requests | Status: closed
 Milestone: To Be Determined | Component: geometry
   Version: Boost 1.52.0 | Severity: Cosmetic
Resolution: fixed | Keywords: VC++ 2012, warning, C4127, conditional expression is constant
------------------------------------------------------+---------------------

Comment (by barendgehrels):

 After doubting about this one, and looking at other Boost.Libraries, it is
 indeed probably the best to use #pragma's here. Many libraries do the same
 for the same problem.

 Alternatives were rewriting (too much), or declaring local non-const
 variables to avoid this warning (I considered this as too much workaround
 for this message only, and this has a (though small) performance penalty)

 So pragmas are added yesterday.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8403#comment:4>
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:50:12 UTC