diff --git a/STL_Extension/include/CGAL/Iterator_project.h b/STL_Extension/include/CGAL/Iterator_project.h index bbafd8000f1..fe166dea6bc 100644 --- a/STL_Extension/include/CGAL/Iterator_project.h +++ b/STL_Extension/include/CGAL/Iterator_project.h @@ -138,18 +138,20 @@ public: return tmp += -n; } -template #if defined(BOOST_MSVC) - difference_type + difference_type operator- (const Self& i) const { + return nt - i.nt; + } #else +template std::enable_if_t && std::is_convertible_v, difference_type> -#endif - operator- (const It& i) const { + operator- (const It& i) const { return nt - i.nt; } +#endif reference operator[]( difference_type n) const { Self tmp = *this;