Allow move in conversion from an exact type ET to Lazy_exact_nt<ET>.

This commit is contained in:
Marc Glisse 2019-02-10 16:01:52 +01:00
parent 66d4d3c791
commit b72341251f
1 changed files with 7 additions and 0 deletions

View File

@ -165,6 +165,11 @@ struct Lazy_exact_Ex_Cst : public Lazy_exact_nt_rep<ET>
{
this->et = new ET(e);
}
Lazy_exact_Ex_Cst (ET&& e)
: Lazy_exact_nt_rep<ET>(CGAL_NTS to_interval(e))
{
this->et = new ET(std::move(e));
}
void update_exact() const { CGAL_error(); }
};
@ -376,6 +381,8 @@ public :
Lazy_exact_nt (const ET & e)
: Base(new Lazy_exact_Ex_Cst<ET>(e)){}
Lazy_exact_nt (ET&& e)
: Base(new Lazy_exact_Ex_Cst<ET>(std::move(e))){}
template <class ET1>
Lazy_exact_nt (const Lazy_exact_nt<ET1> &x,