[CMake] GCC: -std=g++14 vs -std=c++14

Robert Maynard robert.maynard at kitware.com
Wed Jun 15 11:48:52 EDT 2016


This is correct. The default for GCC has always been to enable gcc
extensions, with GCC < 6 having a default of gnu++98, and GCC 6 having
a default of gnu++14

On Wed, Jun 15, 2016 at 11:00 AM, Patrick Boettcher
<patrick.boettcher at posteo.de> wrote:
> On Wed, 15 Jun 2016 10:50:13 -0400
> "Elizabeth A. Fischer" <elizabeth.fischer at columbia.edu> wrote:
>
>> Why are these extensions not turned off by default?  Normally, things
>> should conform to the standards out-of-the-box; and you should have to
>> explicitly enable extensions.  Following that principle would have
>> avoided this entire thread.
>
> Well, I'd not be surprised if the expected standard for gcc users is
> --std=gnu++14 instead of --std=c++14 . That could be a good explanation.
>
> regards,
> --
> Patrick.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake


More information about the CMake mailing list