20

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)?

2

1 Answer 1

12

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).

Sign up to request clarification or add additional context in comments.

10 Comments

Wait, really? You don't use C++11 because the compiler forces you to pass -std flags to it? /pity.
@Yakk one of the reasons, but not because -std flag. Because expiremental word. And yeah, I don't like it.) But boost helps.
Any infos on when gcc 6.0 is supposed to be released?
@MikeMB C++03 was subsumed into C++98 mode (they are identical under both clang and gcc: C++03 is considered bug fixes on C++98, which I figured out researching this answer)
@Yakk: Thanks for the clarification, I wasn't aware of that.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.