Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Unspecified beh...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 9594 of 10094
Post > Topic >>

Unspecified behaviour during token pasting

by metafoo@[EMAIL PROTECTED] May 13, 2008 at 09:10 PM

Is the following program fragment ill-formed?

#define hash_hash %: ## % ## :
#define ignore(x)
ignore(hash_hash)

The standard says "The order of evaluation of ## operators is
unspecified". It also says "If the result is not a valid preprocessing
token, the behavior is undefined". Therefore, it appears that it's
unspecified whether the above example has defined behavior.

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 8 Posts in Topic:
Unspecified behaviour during token pasting
metafoo@[EMAIL PROTECTED]  2008-05-13 21:10:45 
Re: Unspecified behaviour during token pasting
Carl Barron <cbarron41  2008-05-14 08:34:00 
Re: Unspecified behaviour during token pasting
Tony Delroy <tony_in_d  2008-05-14 08:33:27 
Re: Unspecified behaviour during token pasting
anthonypon@[EMAIL PROTECT  2008-05-14 12:55:06 
Re: Unspecified behaviour during token pasting
Carl Barron <cbarron41  2008-05-15 00:04:24 
Re: Unspecified behaviour during token pasting
metafoo@[EMAIL PROTECTED]  2008-05-17 21:20:25 
Re: Unspecified behaviour during token pasting
Tony Delroy <tony_in_d  2008-05-19 05:58:44 
Re: Unspecified behaviour during token pasting
Bart van Ingen Schenau &l  2008-05-20 00:27:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 8:14:44 CDT 2008.