blue-nebula / base

Main repository of Blue Nebula, a fast-paced shooter with a unique parkour system. It is a fork of Red Eclipse and is free software.
https://blue-nebula.org
15 stars 6 forks source link

C++20-ify #267

Open voidanix opened 1 year ago

voidanix commented 1 year ago

Includes #248 as it is pretty much required to not get spammed with warnings: please review (and possibly merge) that one first.

This PR bumps the C++ version requirement to C++20 and starts using some features provided by it: more refactorings thanks to the new version will be coming later.

Because I am pretty sure that some people would absolutely be against this (ahem) due to high compiler requirements, I propose creating a cpp-next branch so that users who want to contribute with modern code that takes advantage of newer versions can do so, by pushing PRs against that branch.

CI will likely fail as the provided compilers are too old: all changes were tested locally against GCC 13 and Clang 16.