C++ Logo

sg10

Advanced search

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

From: Nelson, Clark <clark.nelson_at_[hidden]>
Date: Mon, 23 Mar 2015 20:08:39 +0000
> I think it would be unfortunate if the feature test macros
> has subtle portability issues of their own.
>
>
> I agree.
>
> Since we seem to collectively have no strong opinions: I think I
> very slightly prefer "expand" over "do not expand" on the basis
> that __has_cpp_attribute(X) and [[X]] should be interpreted the
> same way.

I would prefer "expand" somewhat more than very slightly. :-)

Clark

Received on 2015-03-23 21:19:50