You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Juergen Hermann <jh...@web.de> on 2001/09/26 11:18:03 UTC

Strange gcc error

Hi!

While using 1.2 / 1.5.1, I got the following error:

In file included from /netsite/include/xalan-1.2/XalanDOM/XalanNode.hpp:63,
                 from /netsite/include/xalan-1.2/XalanDOM/XalanDocument.hpp:63,
                 from ../../../src/python/util/PyXMLUtil.cpp:25:
/netsite/include/xalan-1.2/XalanDOM/XalanDOMString.hpp: In function `const clas
s XalanDOMString TranscodeFromLocalCodePage(const CharVectorType &)':
/netsite/include/xalan-1.2/XalanDOM/XalanDOMString.hpp:1114: parse error before
 `=='

I had to change the line

	assert(real_size_type(size_type(theSize)) == theSize);

to

	assert(((real_size_type)(size_type)theSize) == theSize);

(i.e. C-style casts instead of funktion-like ones).


BTW, this list didn't even get the announcement for Xalan 1.2, could we finally move the C++ traffic?!



Ciao, Jürgen

--
Jürgen Hermann, Developer (jhe@webde-ag.de)
WEB.DE AG, http://webde-ag.de/