From f014a12399c55c90206946dff68942d2de2235ec Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Sun, 21 Dec 2014 01:04:42 +0100 Subject: [PATCH] [algorithms][assign] Fix static assert checks on older compilers. Revert the change done previously but use static keyword. --- include/boost/geometry/algorithms/assign.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/geometry/algorithms/assign.hpp b/include/boost/geometry/algorithms/assign.hpp index 499c9e0f0..1a1e9c946 100644 --- a/include/boost/geometry/algorithms/assign.hpp +++ b/include/boost/geometry/algorithms/assign.hpp @@ -232,17 +232,19 @@ struct assign concept::check(); concept::check_concepts_and_equal_dimensions(); - // same point_order + static bool const same_point_order + = point_order::value == point_order::value; BOOST_MPL_ASSERT_MSG ( - (point_order::value == point_order::value), + (same_point_order), ASSIGN_IS_NOT_SUPPORTED_FOR_DIFFERENT_POINT_ORDER, (types) ); - // same closure + static bool const same_closure + = closure::value == closure::value; BOOST_MPL_ASSERT_MSG ( - (closure::value == closure::value), + (same_closure), ASSIGN_IS_NOT_SUPPORTED_FOR_DIFFERENT_CLOSURE, (types) );