From fcabff5702fd00d575f1f214bf9b6ced037be53b Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 26 Mar 2024 18:58:55 +0100 Subject: Add missing system includes Main culprits: - std::size_t, std::nullptr_t, and NULL require - std::move and std::forward require - unordered maps and sets require respective includes - std::for_each and std::all_of require --- src/utils/cpp/atomic.hpp | 1 + src/utils/cpp/concepts.hpp | 1 + src/utils/cpp/file_locking.hpp | 1 + src/utils/cpp/hash_combine.hpp | 2 ++ src/utils/cpp/json.hpp | 1 + src/utils/cpp/path_hash.hpp | 1 + 6 files changed, 7 insertions(+) (limited to 'src/utils/cpp') diff --git a/src/utils/cpp/atomic.hpp b/src/utils/cpp/atomic.hpp index bc2a7865..13dc8ca9 100644 --- a/src/utils/cpp/atomic.hpp +++ b/src/utils/cpp/atomic.hpp @@ -18,6 +18,7 @@ #include #include #include +#include // std::move // Atomic wrapper with notify/wait capabilities. // TODO(modernize): Replace any use this class by C++20's std::atomic, once diff --git a/src/utils/cpp/concepts.hpp b/src/utils/cpp/concepts.hpp index 167c6551..548fb960 100644 --- a/src/utils/cpp/concepts.hpp +++ b/src/utils/cpp/concepts.hpp @@ -16,6 +16,7 @@ #define INCLUDED_SRC_UTILS_CPP_CONCEPTS_HPP #include +#include #include #include diff --git a/src/utils/cpp/file_locking.hpp b/src/utils/cpp/file_locking.hpp index 24aeb90b..f8ac1443 100644 --- a/src/utils/cpp/file_locking.hpp +++ b/src/utils/cpp/file_locking.hpp @@ -18,6 +18,7 @@ #include #include #include +#include // std::move #include "gsl/gsl" diff --git a/src/utils/cpp/hash_combine.hpp b/src/utils/cpp/hash_combine.hpp index 6660815d..a09c9985 100644 --- a/src/utils/cpp/hash_combine.hpp +++ b/src/utils/cpp/hash_combine.hpp @@ -15,6 +15,8 @@ #ifndef INCLUDED_SRC_UTILS_CPP_HASH_COMBINE_HPP #define INCLUDED_SRC_UTILS_CPP_HASH_COMBINE_HPP +#include + #include "gsl/gsl" // Taken from Boost, as hash_combine did not yet make it to STL. diff --git a/src/utils/cpp/json.hpp b/src/utils/cpp/json.hpp index d83f30ed..c52b8bd2 100644 --- a/src/utils/cpp/json.hpp +++ b/src/utils/cpp/json.hpp @@ -16,6 +16,7 @@ #define INCLUDED_SRC_UTILS_CPP_JSON_HPP #include +#include #include #include #include diff --git a/src/utils/cpp/path_hash.hpp b/src/utils/cpp/path_hash.hpp index 0f3910f2..2f433c30 100644 --- a/src/utils/cpp/path_hash.hpp +++ b/src/utils/cpp/path_hash.hpp @@ -15,6 +15,7 @@ #ifndef INCLUDED_SRC_UTILS_CPP_PATH_HASH_HPP #define INCLUDED_SRC_UTILS_CPP_PATH_HASH_HPP +#include #include // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) -- cgit v1.2.3