pasting "." and "something" does not give a valid preprocessing token..

Marc Eberhard m.a.eberhard@aston.ac.uk
Tue Aug 19 09:12:00 GMT 2003


Dear Nathan!

On Tue, Aug 19, 2003 at 09:35:18AM +0100, Nathan Sidwell wrote:
> Marc Eberhard wrote:
> >  this-> ## v
> >  mynamespace:: ## v
> >
> >Is there a way to convince the preprocessor, that I know, what I'm doing
> >and to accept the result as a vaild token (what it is in C++)? This is
> >with gcc (GCC) 3.3.1 20030626 (Debian prerelease).

> they are not valid single tokens. The preprocessor is correct. Why do you 
> think you need a ## at all?

Ahhh, that's the solution. :-) I somehow thought, that I would have to use
## to combine the two and 2.95 happyly did the right thing with it. Only
when upgrading to 3.3 I suddenly ran into this problem. But you're perfectly
right... simply leaving the ## out solves the problem! Many thanks, I would
never have guessed, that the solution is that easy!!!

Thanks,
Marc
_______________________________________________________________________________

email: marc@greenie.net, marc.eberhard@alumni.tum.de, marc@affs.org.uk
email: m.a.eberhard@aston.ac.uk, web: http://www.aston.ac.uk/~eberhama/



More information about the Gcc-help mailing list