Problem with macro expantion when '::' is within a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux