inexorgame / vulkan-renderer

A new 3D game engine for Linux and Windows using C++20 and Vulkan API 1.3, in very early but ongoing development
https://inexor.org
MIT License
790 stars 34 forks source link

Move on to C++20 #444

Closed IAmNotHanni closed 2 years ago

IAmNotHanni commented 2 years ago

I think the time has come. This is the current overview of C++20 support: https://en.cppreference.com/w/cpp/compiler_support

MyCatFishSteve commented 2 years ago

I've attempted to use C++20 on Visual Studio 2022 Preview 17.2.0 and it requires an experimental module flag to be set in the project.

Intellisense has trouble working with modules at the moment, so it may not be optimal to switch language standard until it has been fixed. ( You might have more luck than me if you decide to try it :) )

Edit: I wrote this comment without thinking

yeetari commented 2 years ago

I think we won't experiment with modules until there is proper support in the ecosystem around them, however there's lots of other new features in C++ 20 that we'd like to use.