c++23: Replace Common::Unreachable with std::unreachable

Requires at least GCC 12, Clang 15, MSVC 19.32, or AppleClang 14.0.3.
This commit is contained in:
Joshua Vandaële
2026-01-08 22:51:39 +01:00
parent b556bd99d7
commit e822cc3715
10 changed files with 19 additions and 43 deletions
+4 -4
View File
@@ -39,11 +39,11 @@ if (COMPILER STREQUAL "GNU")
endif()
# Enforce minimum compiler versions that support the c++23 features we use
set (GCC_min_version 11)
set (Clang_min_version 14)
set (GCC_min_version 12)
set (Clang_min_version 15)
set (AppleClang_min_version 14.0.3)
set (min_xcode_version "14.0") # corresponding xcode version for AppleClang_min_version
set (MSVC_min_version 19.30)
set (min_xcode_version "14.3") # corresponding xcode version for AppleClang_min_version
set (MSVC_min_version 19.32)
set (min_vs_version "2022 17.2.3") # corresponding Visual Studio version for MSVC_min_version
message(STATUS "Using ${COMPILER} ${CMAKE_CXX_COMPILER_VERSION}")