This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC support for C++ noexcept
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Edward Diener <eldlistmailingz at tropicsoft dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 27 Jul 2015 09:34:18 +0100
- Subject: Re: GCC support for C++ noexcept
- Authentication-results: sourceware.org; auth=none
- References: <CAH8yC8nchUG7WGQEkg-nD0jvG2sOCaZhmfUTxrVz7d=c7eZXmA at mail dot gmail dot com> <20150727015526 dot GB58373 at unpythonic dot net> <CAH8yC8=PJLmO+Z-4L804wqTj2o3_W93ZynyUg6Hjj27EAChyfw at mail dot gmail dot com> <mp4bdj$rcd$1 at ger dot gmane dot org>
On 27 July 2015 at 05:17, Edward Diener wrote:
>
> Try
>
> #if defined(__GXX_EXPERIMENTAL_CXX0X__) || (__cplusplus >= 201103L)
> // C++11 is in effect
> #endif
GCC 4.8 defines __cplusplus to the correct YYYYMMDD value so this is
not necessary.