From d8d9db08797dc968056d652287598f2590acabce Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 15 Jun 2006 08:06:00 +0000 Subject: [PATCH] * 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 --- src/support/lyxalgo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/lyxalgo.h b/src/support/lyxalgo.h index 19ed2e857d..19c2485a34 100644 --- a/src/support/lyxalgo.h +++ b/src/support/lyxalgo.h @@ -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::difference_type n = 0; + typename std::iterator_traits::difference_type n = 0; while (first != last) if (*first++ == value) ++n; return n;