diff --git a/STL_Extension/include/CGAL/Iterator_range.h b/STL_Extension/include/CGAL/Iterator_range.h index 677aa9c44d2..708c5c142e3 100644 --- a/STL_Extension/include/CGAL/Iterator_range.h +++ b/STL_Extension/include/CGAL/Iterator_range.h @@ -77,6 +77,18 @@ namespace CGAL { { return begin()==end(); } +#ifndef CGAL_CFG_NO_CPP0X_TUPLE + + operator std::tuple() + { + return std::tuple{this->first, this->second}; + } + + operator std::tuple() const + { + return std::tuple{this->first, this->second}; + } +#endif };