[PATCH] Guard the noexcept with __cplusplus version.

Joerg Sonnenberger joerg at britannica.bec.de
Mon May 5 10:55:58 PDT 2014


On Mon, May 05, 2014 at 05:39:12PM +0000, Logan Chien wrote:
> To allow the compilation with gcc, we can't use the
> __has_feature(noexcept) to detect the existence of noexcept
> keyword.  We should use __cplusplus >= 201103L instead.

I don't think this is correct. Shouldn't it use noexcept if *either* the
feature exists OR the language is C++11?

Joerg



More information about the cfe-commits mailing list