diff --git a/STL_Extension/include/CGAL/Iterator_project.h b/STL_Extension/include/CGAL/Iterator_project.h index 2a0627201d0..5f62d4dfe25 100644 --- a/STL_Extension/include/CGAL/Iterator_project.h +++ b/STL_Extension/include/CGAL/Iterator_project.h @@ -19,6 +19,7 @@ #ifndef CGAL_ITERATOR_PROJECT_H #define CGAL_ITERATOR_PROJECT_H 1 +#include #include namespace CGAL { @@ -136,12 +137,17 @@ public: Self tmp = *this; return tmp += -n; } - - template + +template +#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1920) + difference_type +#else + std::enable_if_t && std::is_convertible_v, difference_type> - operator-( const It& i) const { +#endif + operator- (const It& i) const { return nt - i.nt; }