Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Official status of c++11 support in gcc

Tags:

c++

gcc

c++11

This is not a question about which c++11 features are supported by gcc (I believe since 4.8 the c++11 support is pretty complete), but if there are any known problems in using them in production code.

The reason I'm asking is that I had a look at the manual for gcc5.2 and in the section "Language Standards Supported by GCC" it reads:

[...] most of which have been implemented in an experimental C++11 mode in GCC.

That word experimental got me a little worried, but on the other hand, c++14 isn't even mentioned, although I believe GCC supports all of those features, too. So is this just an oversight in the documentation or are there really any valid concerns against using c++11 features in production code that will be compiled with gcc5.2 (4.8)?

like image 351
MikeMB Avatar asked Oct 20 '15 14:10

MikeMB


1 Answers

Looks like actually it's experimental only on words. In gcc 6.0 it will not be experimental more.

The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98.

But now, default mode is gnu++98 and so, it's experimental (one of the reasons, why we don't use C++11/C++14 now).

like image 102
ForEveR Avatar answered Oct 04 '22 05:10

ForEveR