]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxalgo.h
* src/support/lyxalgo.h
[lyx.git] / src / support / lyxalgo.h
index 19ed2e857d1846102cc70457b18ca49725a3cf35..19c2485a34241b9cf5ee51c69d92360b2a0e24d7 100644 (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;