From 74d36cd5b31cdff6cb0efe097db0877edce58025 Mon Sep 17 00:00:00 2001 From: Samuel Debione Date: Fri, 23 May 2014 16:32:53 +0200 Subject: [PATCH] [expand] Move concept check --- include/boost/geometry/algorithms/expand.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/geometry/algorithms/expand.hpp b/include/boost/geometry/algorithms/expand.hpp index 894ae7a62..19e40aa2d 100644 --- a/include/boost/geometry/algorithms/expand.hpp +++ b/include/boost/geometry/algorithms/expand.hpp @@ -261,6 +261,8 @@ struct expand template static inline void apply(Box& box, Geometry const& geometry) { + concept::check(); + concept::check(); concept::check_concepts_and_equal_dimensions(); dispatch::expand::apply(box, geometry); @@ -337,9 +339,6 @@ inline void expand(Box& box, Geometry const& geometry, template inline void expand(Box& box, Geometry const& geometry) { - concept::check(); - concept::check(); - resolve_variant::expand::apply(box, geometry); }