C++ Logo

sg10

Advanced search

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

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 9 Mar 2015 13:33:53 +0000
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.

Received on 2015-03-09 14:34:15