(count): Compile fix (add forgotten typename)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14116
a592a061-630c-0410-9148-
cb99ea01b6c8
#ifdef HAVE_STD_COUNT
return std::count(first, last, value);
#else
#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;
while (first != last)
if (*first++ == value) ++n;
return n;