DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
740 stars 260 forks source link

Default to C11/C++11 for gcc/g++ #257

Closed SolalPirelli closed 7 years ago

SolalPirelli commented 7 years ago

The first version of gcc to fully support C++11 was 4.8.1, which was released in May 2013. Even Ubuntu 14.04 LTS includes it.

As for C11, the features not in GCC 4.8 seem extremely unlikely to be used in programming competitions.

I suggest changing the default C compile script to include -std=c11 and C++ to include -std=c++11.

eldering commented 7 years ago

My personal preference would be to keep the standard unspecified in the default compile script. This way the compiler will always pick a standard that is well supported, and the script is future proof.

SolalPirelli commented 7 years ago

Looking at the GCC doc archives, it seems there was a sudden jump recently from having C++98 (well-supported for quite a while, but old) as the default to C++14 (pretty new), which may indicate that in the future the default version will move quicker.

I'll close this, since it seems to be a problem that will fix itself fairly soon.