Problem with macro expantion when '::' is within a string
Lars Holm
lars.holm@bonetmail.com
Mon Dec 8 03:22:00 GMT 2003
Hi!
I have problem with the preprocessor . The thing I try to do is beneath
I have this macro and will expand it.
#define FOO(a,b) a##::Foo(#b)
The compiler complains with:
foo.cxx:35:41: pasting "txBoolean" and "::" does not give a valid preprocessing token
It seems to me that the concatenation fails when one of the strings contains '::'.
Is there any solutions on this problem
Regards
Lars Holm
More information about the Gcc-help
mailing list