Try to work around non-standard std::count in sunpro (not sure it will

work, check for instance in Min_annulus_d testsuite).
This commit is contained in:
Marc Glisse 2007-04-20 16:54:56 +00:00
parent 143f28e4bd
commit 325c956ba1
1 changed files with 9 additions and 0 deletions

View File

@ -99,6 +99,15 @@ namespace std {
return n;
}
template <class InputIterator, class T>
inline typename iterator_traits<InputIterator>::difference_type
count (InputIterator first, InputIterator last, const T& value)
{
typename iterator_traits<InputIterator>::difference_type result;
count(first,last,value,result);
return result;
}
} // namespace std
namespace CGAL {