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

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

 



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