Add an conversion operator to tuple into Iterator_range to satisfy all versions of clang.

This commit is contained in:
Maxime Gimeno 2019-04-02 16:32:37 +02:00
parent 84b9328619
commit b1a747b514
1 changed files with 9 additions and 0 deletions

View File

@ -78,6 +78,15 @@ namespace CGAL {
return begin()==end();
}
operator std::tuple<I&, I&>()
{
return std::tuple<I&, I&>{this->first, this->second};
}
operator std::tuple<const I&, const I&>() const
{
return std::tuple<const I&, const I&>{this->first, this->second};
}
};
template <typename T>