From 4b5eba37270c3a76851feacd744340be0747d8c9 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 23 Apr 2024 22:23:25 -0700 Subject: [PATCH] upgrade to c++23 --- CMakeLists.txt | 2 +- src/PlayerInventory.hh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fecb806..11f6a7ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.10) project(newserv) -set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED True) if (MSVC) add_compile_options(/W4 /WX) diff --git a/src/PlayerInventory.hh b/src/PlayerInventory.hh index 20dd48e7..a0ef6e85 100644 --- a/src/PlayerInventory.hh +++ b/src/PlayerInventory.hh @@ -3,6 +3,7 @@ #include #include +#include #include #include #include