[SG10] Should the argument to __has_cpp_attribute be expanded by the preprocessor?

Jonathan Wakely cxx at kayari.org
Mon Mar 9 14:33:53 CET 2015


We couldn't wok out whether SD-6 intends this to work:

#define D deprecated
#if __has_cpp_attribute (D)
#endif

Currently GCC performs macro-expansion but Clang doesn't.


More information about the Features mailing list