From 325c956ba1ef37167efbb4fddd2ec237bfc0263f Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Fri, 20 Apr 2007 16:54:56 +0000 Subject: [PATCH] Try to work around non-standard std::count in sunpro (not sure it will work, check for instance in Min_annulus_d testsuite). --- Installation/include/CGAL/Sun_fixes.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Installation/include/CGAL/Sun_fixes.h b/Installation/include/CGAL/Sun_fixes.h index 183b6d9d189..56910d96cec 100644 --- a/Installation/include/CGAL/Sun_fixes.h +++ b/Installation/include/CGAL/Sun_fixes.h @@ -99,6 +99,15 @@ namespace std { return n; } + template + inline typename iterator_traits::difference_type + count (InputIterator first, InputIterator last, const T& value) + { + typename iterator_traits::difference_type result; + count(first,last,value,result); + return result; + } + } // namespace std namespace CGAL {