Will -std=c++11 compiler flag be default at some point?

1.2k views Asked by At

As in title. Will it be default or to use C++11 features we will always have to add -std=c++11?

Right now, because of this option, C++11 still feels like some extra, non-standard thing.

To specify compiler, -std=c++11 flag is used by clang, g++ and even ICC.

1

There are 1 answers

4
Cheers and hth. - Alf On

With g++, use -dumpspecs to generate a specs file. Use -print-search-dirs and first line is where to place specs file. Add the -std=c++11 option appropriate place in specs file, on the line following *cc1plus:.