Opened 8 years ago

Closed 8 years ago

#10666 closed Support Requests (fixed)

VC++ 2013 compiler warning C4127: conditional expression is constant

Reported by: Volker Schöch <vschoech@…> Owned by: Barend Gehrels
Milestone: Boost 1.58.0 Component: geometry
Version: Boost 1.57.0 Severity: Problem
Keywords: VC++ 2013, warning, C4127, conditional expression is constant Cc:

Description

I'm using Microsoft Visual Studio 12 (2013) to compile boost 1.56.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_56_0\boost\geometry\algorithms\remove_spikes.hpp(97): error C4127: conditional expression is constant
\boost_1_56_0\boost\geometry\algorithms\remove_spikes.hpp(130): error C4127: conditional expression is constant

Please consider related Ticket #8403.

Change History (2)

comment:1 by Volker Schöch <vschoech@…>, 8 years ago

Version: Boost 1.56.0Boost 1.57.0

This warning is still present in 1.57.0.

comment:2 by awulkiew, 8 years ago

Milestone: To Be DeterminedBoost 1.58.0
Resolution: fixed
Status: newclosed

Fix: https://github.com/boostorg/geometry/pull/218

I also fixed one in Rational which is Geometry dependency.
See: https://github.com/boostorg/rational/pull/7

Note: See TracTickets for help on using tickets.