Small enhansment to the construct-opposite functor

This commit is contained in:
Efi Fogel 2017-11-15 15:01:54 +02:00
parent 6779e2cb35
commit e60ec0ac3e
1 changed files with 2 additions and 2 deletions

View File

@ -427,8 +427,8 @@ public:
X_monotone_curve_2>::type
construct_opposite(const X_monotone_curve_2& cv) const
{
X_monotone_curve_2 new_cv = m_base.construct_opposite_2_object()(cv);
new_cv.set_data(cv.data());
X_monotone_curve_2 new_cv(m_base.construct_opposite_2_object()(cv),
cv.data());
return new_cv;
}