sumo icon indicating copy to clipboard operation
sumo copied to clipboard

make c++17 the default

Open behrisch opened this issue 6 months ago • 2 comments

This does not mean that we we need to drop support for older compilers immediately. Especially since CentOS7 (with gcc 4.8) is still around (although it is EOL since 01.07.2024).

Furthermore requiring gcc7 still does not give full C++17 support, especially concerning the filesystem library. This affects all openSUSE Leap 15.x installations where gcc7 is the default compiler (openSUSE 15.6 is still the current release until August 2025). C++17 support has been considered experimental until gcc9.

The recommendation could be:

  • Support gcc7 because of openSUSE
  • Support MSVC2017
  • try to enable C++17 whenever possible
  • ~keep minimal CentOS 7 support (maybe with restricted feature set) until we have upgraded the pypi toolchain~

behrisch avatar Jun 05 '25 06:06 behrisch

The cmake run should generate an output or even a warning when the detected compiler does not support c++17

behrisch avatar Jun 05 '25 06:06 behrisch

We do not need to keep compatibility with the CentOS 7 default compiler for the python wheels because the manylinux2014 image already upgraded to gcc10 (while still being based on CentOS7).

behrisch avatar Jun 05 '25 08:06 behrisch