From b1a747b514bf897d3808f4476a545f521cc253d6 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 2 Apr 2019 16:32:37 +0200 Subject: [PATCH] Add an conversion operator to tuple into Iterator_range to satisfy all versions of clang. --- STL_Extension/include/CGAL/Iterator_range.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/STL_Extension/include/CGAL/Iterator_range.h b/STL_Extension/include/CGAL/Iterator_range.h index 677aa9c44d2..20a2bc8458b 100644 --- a/STL_Extension/include/CGAL/Iterator_range.h +++ b/STL_Extension/include/CGAL/Iterator_range.h @@ -78,6 +78,15 @@ namespace CGAL { return begin()==end(); } + operator std::tuple() + { + return std::tuple{this->first, this->second}; + } + + operator std::tuple() const + { + return std::tuple{this->first, this->second}; + } }; template