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: pasting "." and "something" does not give a valid preprocessing token..


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/


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