This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Lars Holm <lars.holm@bonetmail.com>:
> #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

You don't need the "##".  "##" is only useful when you want to
make a single word out of two separate words, such as
    tx ## Boolean
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]