From 97508183e1cc0538d8bb2596755dd0c8cea8a57f Mon Sep 17 00:00:00 2001 From: Samuel Debione Date: Fri, 23 May 2014 16:34:17 +0200 Subject: [PATCH] [assign] Move concept check --- include/boost/geometry/algorithms/assign.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/geometry/algorithms/assign.hpp b/include/boost/geometry/algorithms/assign.hpp index 0d19f6ca9..f7b8679f1 100644 --- a/include/boost/geometry/algorithms/assign.hpp +++ b/include/boost/geometry/algorithms/assign.hpp @@ -136,6 +136,8 @@ struct assign Geometry1& geometry1, const Geometry2& geometry2) { + concept::check(); + concept::check(); concept::check_concepts_and_equal_dimensions(); bool const same_point_order = @@ -274,9 +276,6 @@ geometry, e.g. a RING. This only works if it is possible and applicable. template inline void assign(Geometry1& geometry1, Geometry2 const& geometry2) { - concept::check(); - concept::check(); - resolve_variant::assign::apply(geometry1, geometry2); }