Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Invalid preprocessing token



Hi there,

In attempting to get a warning free build (Using 10.2.2),
I've come across something like the following in a cpp file:

#define memberFuncPointer(func) &X:: ## func
memberFuncPointer(memberFun)

If I run cpp over this snippet, I get a warning:

warning: pasting "::" and "memberFun" does not give a valid
preprocessing token

Are there any reasons why I should not replace
the macro definition with:

#define memberFuncPointer(func) &X::func

which is warning free? I can't think of any off the top of my
head, but don't want to mistakenly break something through
ignorance...

Thanks in advance,
Rob.



http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your seasons greetings online this year!
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.