[cfe-commits] [libc++] Switching to 'double underscore' notation for has_feature.

Eli Friedman eli.friedman at gmail.com
Fri Mar 2 11:56:22 PST 2012


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.

-Eli



More information about the cfe-commits mailing list