Boost logo

Geometry :

Subject: [geometry] Compiler warnings in geometry 1.50.0: geometry\algorithms\correct.hpp(138): error C4127: conditional expression is constant
From: Volker Schöch (vschoech_at_[hidden])
Date: 2012-07-06 09:30:09


Hi all,

 

I'm in the process of switching our project from 1.48 to 1.50. There were some warnings in geometry 1.48 that seem to have been resolved. Thank you! On the other hand, there are new warnings in geometry 1.50. IMO, these warnings should be eliminated (for a couple of reasons, one being that they clutter the output window and obscure new/unknown warnings that may be important).

 

I am compiling with MS VC++ 10 for 32 bit. My polygon type is oriented counter-clockwise and not closed, my point type is based on int.

 

Regards

   Volker

 

 

1>c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\correct.hpp(138): error C4127: conditional expression is constant

1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\correct.hpp(130) : while compiling class template member function 'void boost::geometry::detail::correct::correct_ring<Ring,Predicate>::apply(Ring &)'

1> with

1> [

1> Ring=boost::geometry::model::ring<_TPoint<int>,false,false,std::vector,std::allocator>,

1> Predicate=std::less<double>

1> ]

1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\correct.hpp(173) : see reference to class template instantiation 'boost::geometry::detail::correct::correct_ring<Ring,Predicate>' being compiled

1> with

1> [

1> Ring=boost::geometry::model::ring<_TPoint<int>,false,false,std::vector,std::allocator>,

1> Predicate=std::less<double>

1> ]

1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\correct.hpp(168) : while compiling class template member function 'void boost::geometry::detail::correct::correct_polygon<Polygon>::apply(Polygon &)'

1> with

1> [

1> Polygon=boost::geometry::model::polygon<_TPoint<int>,false,false>

1> ]

1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\multi\algorithms\detail\modify.hpp(40) : see reference to class template instantiation 'boost::geometry::detail::correct::correct_polygon<Polygon>' being compiled

1> with

1> [

1> Polygon=boost::geometry::model::polygon<_TPoint<int>,false,false>

1> ]

1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\multi\algorithms\detail\modify.hpp(34) : while compiling class template member function 'void boost::geometry::detail::multi_modify<MultiGeometry,Policy>::apply(MultiGeometry &)'

1> with

1> [

1> MultiGeometry=_TPolygon<int>,

1> Policy=boost::geometry::detail::correct::correct_polygon<boost::geometry::model::polygon<_TPoint<int>,false,false>>

1> ]

1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\multi\algorithms\correct.hpp(56) : see reference to class template instantiation 'boost::geometry::detail::multi_modify<MultiGeometry,Policy>' being compiled

1> with

1> [

1> MultiGeometry=_TPolygon<int>,

1> Policy=boost::geometry::detail::correct::correct_polygon<boost::geometry::model::polygon<_TPoint<int>,false,false>>

1> ]

1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\correct.hpp(258) : see reference to class template instantiation 'boost::geometry::dispatch::correct<Geometry>' being compiled

1> with

1> [

1> Geometry=_TPolygon<int>

1> ]

1> c:\svn_vschoech\dev\code\library\geometrytypes\_tpolygon.inl(286) : see reference to function template instantiation 'void boost::geometry::correct<_TPolygon<T>>(Geometry &)' being compiled

1> with

1> [

1> T=int,

1> Geometry=_TPolygon<int>

1> ]

1> c:\svn_vschoech\dev\code\library\geometrytypes\_tpolygon.cpp(57) : see reference to function template instantiation '_TPolygon<T> _TPolygon<T>::operator ^<_TPolygon<T>>(const Geometry &) const' being compiled

1> with

1> [

1> T=int,

1> Geometry=_TPolygon<int>

1> ]

1>c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\correct.hpp(142): error C4127: conditional expression is constant

 

 

--
Volker Schöch | vschoech_at_[hidden]
Senior Software Engineer
think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany
http://www.think-cell.com | phone +49 30 666473-10 | US phone +1 800 891 8091
Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl


Geometry list run by mateusz at loskot.net