A bit off-topic maybe, what is a good open source library to read through to see some clean&modern C++? I've not dealt with the language in a bit and was thinking of diving back in
I've always found SerenityOS to have quite nice C++ source code. The project runs on very recent versions of C++ (to the point where the standard compilation script for Ubuntu will compile a modern compiler first) and the OS intentionally doesn't stick to POSIX, allowing some very nice API improvements that only work in a C++-first world.
Its main author moved on to Ladybird, though, so I haven't really browsed the code recently. I'm not sure if SerenityOS uses concepts and other such recent additions.
In any case, having a go at Tour of C++ book is a good way to read about modern idioms.
the most recent version has `import std;` in the very first hello world, which to my knowledge is not close to working in the vast majority of compilers.
It works alright on VC++ and clang/CMake/ninja.
The main issue is VS where the EDG frontend still hasn't been properly updated, and clang/cmake can't handle header units.
GCC is lagging behind, and everyone else is anyway mostly catching up to C++17.
For my hobby coding, I am mostly doing C++23 on VC++, so it is modules all the way.
At work, it is still C++17 land on native libraries for managed languages.