Which version of C++ is default in GCC 7?

Markus Trippelsdorf markus@trippelsdorf.de
Sun Apr 30 15:29:00 GMT 2017


On 2017.04.29 at 00:45 -0400, Jeffrey Walton wrote:
> On Sat, Apr 29, 2017 at 12:31 AM, Markus Trippelsdorf
> <markus@trippelsdorf.de> wrote:
> > On 2017.04.28 at 17:59 -0400, Jeffrey Walton wrote:
> >> Hi Eveyone,
> >>
> >> I was reading though https://gcc.gnu.org/gcc-7/changes.html.
> >>
> >> Which version of C++ is default in GCC 7?
> >
> >  % echo | g++ -x c++ -dM -E - | grep cplusplus
> > #define __cplusplus 201402L
> 
> Thanks. Is that -std=c++14 or -std=gnu++14?

gnu++14

-- 
Markus



More information about the Gcc-help mailing list