[cfe-commits] [libc++] Switching to 'double underscore' notation for has_feature.
Howard Hinnant
hhinnant at apple.com
Fri Mar 2 12:16:36 PST 2012
On Mar 2, 2012, at 2:56 PM, Eli Friedman wrote:
> On Thu, Mar 1, 2012 at 11:50 PM, Jean-Daniel Dupas
> <devlists at shadowlab.org> wrote:
>> It does not solve the "do not use identifier that can conflict with legitimate user macros" issue.
>>
>> ---------------
>> #define cxx_noexpect noexcept()
>>
>> #if __has_feature(__cxx_noexpect__) || __has_feature(cxx_noexpect)
>>
>> #endif
>> ---------------
>
> We could make a variant of this work if we really wanted to using #if
> defined(cxx_noexcept) or something like that. Not sure if it's
> worthwhile, though.
I've seen no reports from the field that would indicate that this problem is that urgent.
Howard
More information about the cfe-commits
mailing list