update to C++23 (#4329)

This commit is contained in:
2025-08-13 22:03:08 -07:00
committed by GitHub
parent 45c5183ecb
commit 06538f3493
10 changed files with 14 additions and 1 deletions
@@ -7,6 +7,7 @@
#include <algorithm>
#include <functional>
#include <iterator>
#include <optional>
namespace common {
@@ -5,7 +5,9 @@
#ifndef EAGLE0_MAPINFOCALCULATOR_HPP
#define EAGLE0_MAPINFOCALCULATOR_HPP
#include <cstdint>
#include <map>
#include <memory>
#include <string>
#include "src/main/cpp/net/eagle0/shardok/library/action_point_distances/ActionPointDistancesCache.hpp"
@@ -3,6 +3,7 @@
//
#include <iostream>
#include <memory>
#include "MapInfoCalculator.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/settings/GameSettings.hpp"
@@ -5,6 +5,8 @@
#ifndef EAGLE0_GAMESTATEW_HPP
#define EAGLE0_GAMESTATEW_HPP
#include <cstdint>
#include "src/main/cpp/net/eagle0/shardok/library/ShardokCTypes.h"
#include "src/main/cpp/net/eagle0/shardok/library/fb_helpers/FlatbufferWrapper.hpp"
#include "src/main/flatbuffer/net/eagle0/shardok/storage/game_state.hpp"
@@ -7,6 +7,8 @@
#include <sys/mman.h>
#include <unistd.h>
#include <mutex>
namespace shardok {
// Uses mmap and munmap to directly allocate pages
@@ -4,6 +4,8 @@
#include "SettingsLoader.hpp"
#include <memory>
#include "src/main/cpp/net/eagle0/common/FilesystemUtils.hpp"
#include "src/main/cpp/net/eagle0/common/TsvParser.hpp"
#include "src/main/cpp/net/eagle0/shardok/util/BattalionTypeRegistrar.hpp"
@@ -8,6 +8,7 @@
#include "EagleInterfaceGrpcServer.hpp"
#include <memory>
#include <thread>
#include <utility>
@@ -9,6 +9,7 @@
#ifndef EagleInterfaceGrpcServer_hpp
#define EagleInterfaceGrpcServer_hpp
#include <memory>
#include <string>
#include <thread>
@@ -6,6 +6,7 @@
// Copyright © 2017 none. All rights reserved.
//
#include <cstddef>
#include <memory>
#include <thread>
+1 -1
View File
@@ -1,3 +1,3 @@
COPTS = ["--std=c++20", "-Werror", "-Wall", "-Wextra", "-Wdeprecated"]
COPTS = ["--std=c++23", "-Werror", "-Wall", "-Wextra", "-Wdeprecated"]
TEST_COPTS = COPTS + ["-Iexternal/gtest/include"]