From: Georg Baum Date: Thu, 15 Jun 2006 08:06:00 +0000 (+0000) Subject: * src/support/lyxalgo.h X-Git-Tag: 1.6.10~13108 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d8d9db08797dc968056d652287598f2590acabce;p=features.git * 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 --- 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;