]> git.lyx.org Git - lyx.git/commitdiff
* src/support/lyxalgo.h
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 15 Jun 2006 08:06:00 +0000 (08:06 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 15 Jun 2006 08:06:00 +0000 (08:06 +0000)
(count): Compile fix (add forgotten typename)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14116 a592a061-630c-0410-9148-cb99ea01b6c8

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;