Ticket #8403 (closed Support Requests: fixed)
VC++ 2012 compiler warning C4127: conditional expression is constant
|Reported by:||Volker Schöch <vschoech@…>||Owned by:||barendgehrels|
|Milestone:||To Be Determined||Component:||geometry|
|Keywords:||VC++ 2012, warning, C4127, conditional expression is constant||Cc:|
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?
- Type changed from Bugs to Support Requests
- Severity changed from Problem to Cosmetic
- Status changed from new to closed
- Resolution set to fixed