Georg Baum wrote:
Am Donnerstag, 15. Juni 2006 00:17 schrieb Giuseppe Ragusa:

g++ -DHAVE_CONFIG_H -I. -I. -I../../src -Winvalid-pch --include=./pch.h -I./.. -I../../boost -Wextra -Wall -fno-exceptions -g -O -MT math_mathmlstream.lo -MD -MP -MF .deps/math_mathmlstream.Tpo -c math_mathmlstream.C -o math_mathmlstream.o ../../src/support/lyxalgo.h: In function 'typename std::iterator_traits<_Iterator>::difference_type lyx::count(Iterator, Iterator, const T&)':
../../src/support/lyxalgo.h:84: error: expected `;' before 'n'
../../src/support/lyxalgo.h:86: error: 'n' was not declared in this
scope
../../src/support/lyxalgo.h:87: error: 'n' was not declared in this
scope
../../src/support/lyxalgo.h: In function 'typename std::iterator_traits<_Iterator>::difference_type lyx::count(Iterator, Iterator, const T&) [with Iterator = const char*, T = char]':
math_mathmlstream.C:87:   instantiated from here
../../src/support/lyxalgo.h:84: error: dependent-name 'std::iterator_traits<_Iterator>::difference_type' is parsed as a non-type, but instantiation yields a type ../../src/support/lyxalgo.h:84: note: say 'typename std::iterator_traits<_Iterator>::difference_type' if a type is meant
make[4]: *** [math_mathmlstream.lo] Error 1

You found a bug. I corrected it now in svn (see attached patch). Nevertheless I don't understand why you don't have HAVE_STD_COUNT #defined, since you use a recent Linux distro, and gcc has std::count since a long time.

Either something is still broken on your system, or our configure test for HAVE_STD_COUNT does not work correctly.

I have been wondering exactly the same thing.

configure:5098: checking for conforming std::count
configure:5128: g++ -c -g -O -Wextra -Wall   conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:33: warning: unused variable 'i'
configure:5134: $? = 0
configure:5137: test -z                          || test ! -s conftest.err
configure:5140: $? = 0
configure:5143: test -s conftest.o
configure:5146: $? = 0
configure:5158: result: yes

So it is my problem. Any idea what it could be?

Reply via email to