From 1516bbd192cab19d388d5c55ebeda3cca6503665 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Thu, 3 Jul 2014 18:56:26 +0200 Subject: [PATCH] Fix warning with MSVC 14 Microsoft Visual C++ 14 has a new warning: "warning C4456: declaration of 'denom' hides previous local declaration". --- include/boost/polygon/detail/voronoi_predicates.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/polygon/detail/voronoi_predicates.hpp b/include/boost/polygon/detail/voronoi_predicates.hpp index f5b87ba..7839879 100644 --- a/include/boost/polygon/detail/voronoi_predicates.hpp +++ b/include/boost/polygon/detail/voronoi_predicates.hpp @@ -638,7 +638,7 @@ class voronoi_predicates { if (is_zero(denom)) { big_int_type numer = teta * teta - sum_AB * sum_AB; - big_int_type denom = teta * sum_AB; + denom = teta * sum_AB; cA[0] = denom * sum_x * 2 + numer * vec_x; cB[0] = segm_len; cA[1] = denom * sum_AB * 2 + numer * teta;