Preprocessor Problems
Alexy Khrabrov
alexy.khrabrov@setup.org
Tue Jan 23 10:48:00 GMT 2001
Neil Booth writes:
o Alexy Khrabrov wrote:-
o Content-Description: message body and .signature
o
o > ETEMPLATE(##ctypes) class name; \
o > ETEMPLATE(##ctypes) \
o
o This kind of stuff is not portable. Why do you need the ##? Just
o remove it, and probably everywhere else it is complained about. You
o cannot paste anything with a '('; shame on other preprocessors for not
o telling you so.
o
o Neil.
Of course I tried that and the file still fails to
go through g++-2.96 which I got as an RPM
g++-2.96-69. LEDA is one of the largest legacy
C++ libraries, and its config says it recognizes
g++ 2.95. So I wonder if I downgrade to 2.95 I
probably will see the light? Expanding cascading
macros with parameters seemingly needs ('s on the
RHS -- how is it done properly, if at all?
LEDA says it now supports recent KAI and Borland C++.
Is it possible they are all wrong? Is there a way
to revert to wrong behavior then? ;-)
I need to start modeling the web as a graph, and
need all the power of C++ and LEDA. But I'm stuck
for a week with C++ preprocessing standardization,
and enjoy it as an Ada standard lover...
--
Cheers,
Alexy V. Khrabrov :: www.suffix.com :: Age Quod Agis
More information about the Gcc-bugs
mailing list