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); }