* src/support/lyxalgo.h

(count): Compile fix (add forgotten typename)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14116 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-06-15 08:06:00 +00:00
parent c287b1330e
commit d8d9db0879

View File

@ -81,7 +81,7 @@ count (Iterator first, Iterator last, T const & value)
#ifdef HAVE_STD_COUNT
return std::count(first, last, value);
#else
std::iterator_traits<Iterator>::difference_type n = 0;
typename std::iterator_traits<Iterator>::difference_type n = 0;
while (first != last)
if (*first++ == value) ++n;
return n;