From 4e4a93de3720ceafe1795b1307e8ea43ef87a8b8 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Wed, 31 Mar 2021 15:48:05 +0200 Subject: [PATCH] Resolve ambiguous call to operator== by overloading it with base type --- HalfedgeDS/include/CGAL/HalfedgeDS_iterator.h | 1 + 1 file changed, 1 insertion(+) diff --git a/HalfedgeDS/include/CGAL/HalfedgeDS_iterator.h b/HalfedgeDS/include/CGAL/HalfedgeDS_iterator.h index 0eb0856a890..b2bcac25a33 100644 --- a/HalfedgeDS/include/CGAL/HalfedgeDS_iterator.h +++ b/HalfedgeDS/include/CGAL/HalfedgeDS_iterator.h @@ -321,6 +321,7 @@ public: return It::operator==( It(nullptr)); } bool operator!=( std::nullptr_t p) const { return !(*this == p); } + bool operator==( const It& i) const { return It::operator==(i); } bool operator==( const Self& i) const { return It::operator==(i); } bool operator!=( const Self& i) const { return !(*this == i); }