mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
* 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
This commit is contained in:
parent
c287b1330e
commit
d8d9db0879
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user