Boost C++ Libraries: Ticket #13598: VC++ 15 compiler warning C4456: declaration of 'cur' hides previous local declaration https://svn.boost.org/trac10/ticket/13598 <p> I'm using Microsoft Visual Studio 15.6.0 to compile boost 1.67.0. I use compiler flag /W4. The following warnings occur in geometry: </p> <p> <strong>\boost_1_67_0\boost\geometry\algorithms\detail\is_valid\has_spikes.hpp(146): warning C4456: declaration of 'prev' hides previous local declaration</strong> </p> <p> <strong>\boost_1_67_0\boost\geometry\algorithms\detail\is_valid\has_spikes.hpp(149): warning C4456: declaration of 'next' hides previous local declaration</strong> </p> <p> <strong>\boost_1_67_0\boost\geometry\algorithms\detail\is_valid\has_spikes.hpp(142): warning C4456: declaration of 'cur' hides previous local declaration</strong> </p> <p> Consider related ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/13378" title="#13378: Bugs: VC++ 14 compiler warning C4456: declaration of 'it' hides previous ... (closed: fixed)">#13378</a>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13598 Trac 1.4.3 Barend Gehrels Wed, 26 Jun 2019 09:04:37 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13598#comment:1 https://svn.boost.org/trac10/ticket/13598#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Closing as duplicate, new issue in <a class="ext-link" href="https://github.com/boostorg/geometry/issues/600"><span class="icon">​</span>https://github.com/boostorg/geometry/issues/600</a> </p> Ticket