diff --git a/include/boost/polygon/rectangle_concept.hpp b/include/boost/polygon/rectangle_concept.hpp index e8243190..99e1b3f6 100644 --- a/include/boost/polygon/rectangle_concept.hpp +++ b/include/boost/polygon/rectangle_concept.hpp @@ -190,8 +190,7 @@ namespace boost { namespace polygon{ typename is_rectangle_concept::type>::type>::type, rectangle_type_1>::type & assign(rectangle_type_1& lvalue, const rectangle_type_2& rvalue) { - set(lvalue, HORIZONTAL, get(rvalue, HORIZONTAL)); - set(lvalue, VERTICAL, get(rvalue, VERTICAL)); + lvalue = copy_construct(rvalue); return lvalue; }