This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCCG with C++11
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "Hotmail (ArbolOne)" <ArbolOne at hotmail dot ca>
- Cc: gcc-help Mailing List <gcc-help at gcc dot gnu dot org>, MinGW-64 Mailinglist <mingw-w64-public at lists dot sourceforge dot net>
- Date: Thu, 28 May 2015 16:30:40 +0100
- Subject: Re: GCCG with C++11
- Authentication-results: sourceware.org; auth=none
- References: <SNT150-DS29309632C52168DDEAE94BACA0 at phx dot gbl>
On 28 May 2015 at 16:24, Hotmail (ArbolOne) <ArbolOne@hotmail.ca> wrote:
> If I am not mistaken _MSC_VER >= 1600 is the version that started
> implementing C++11. So, I test for that version of the compiler in my code,
> i.e.
> #ifdef _MSC_VER >= 1600
> ....
> #endif
> I would like to do the same for __GNUG__, but what version of g++ started
> implementing C++11?
4.3 (see https://gcc.gnu.org/projects/cxx0x.html) but it's not much
use knowing when support started appearing if you need to use a
feature that wasn't supported until later.
GCC 4.8.1 has complete C++11 language support, 5.1 has complete C++11
library support.