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

Subject: [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-05 14:54:36


#8403: VC++ 2012 compiler warning C4127: conditional expression is constant
---------------------------------------------------------------------------+
 Reporter: Volker Schöch <vschoech@…> | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: VC++ 2012, warning, C4127, conditional expression is constant |
---------------------------------------------------------------------------+
 I'm using Microsoft Visual Studio 2012 to compile boost 1.52.0. I use
 compiler flag /W4. The following warnings (which we declared errors for
 our project) occur in geometry, regardless whether I'm compiling for x64
 or x86:
 {{{
 \boost_1_52_0\boost\geometry\algorithms\convert.hpp(96): error C4127:
 conditional expression is constant if (Close) ...
 }}}
 {{{
 \boost_1_52_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(263):
 error C4127: conditional expression is constant if
 (InterruptPolicy::enabled) ...
 }}}
 {{{
 \boost_1_52_0\boost\geometry\algorithms\num_points.hpp(51): error C4127:
 conditional expression is constant if (s == open) ...
 }}}
 Maybe it's possible to eliminate those warnings for the next boost
 version?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8403>
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