From dc4e03ccb16ddb853274d0a8d25f11e3b0e6e2f6 Mon Sep 17 00:00:00 2001 From: Devajith Valaparambil Sreeramaswamy <devajith.valaparambil.sreeramaswamy@cern.ch> Date: Tue, 22 Apr 2025 15:26:27 +0200 Subject: [PATCH] [core] Add missing includes This will fix build errors like: error: declaration of 'type_info' must be imported from module 'std.std_typeinfo' before it is required --- core/cont/inc/TCollectionProxyInfo.h | 1 + math/mathcore/inc/Math/DistSampler.h | 1 + math/mathcore/inc/Math/Functor.h | 2 ++ tree/ntuple/inc/ROOT/RNTupleMetrics.hxx | 1 + 4 files changed, 5 insertions(+) diff --git a/core/cont/inc/TCollectionProxyInfo.h b/core/cont/inc/TCollectionProxyInfo.h index d37aa8932a7ec..5dd6d73ada43f 100644 --- a/core/cont/inc/TCollectionProxyInfo.h +++ b/core/cont/inc/TCollectionProxyInfo.h @@ -23,6 +23,7 @@ #include "TError.h" #include <vector> #include <forward_list> +#include <typeinfo> #include <utility> #if defined(_WIN32) diff --git a/math/mathcore/inc/Math/DistSampler.h b/math/mathcore/inc/Math/DistSampler.h index e2dee60013bb3..9dbbdb8868f8a 100644 --- a/math/mathcore/inc/Math/DistSampler.h +++ b/math/mathcore/inc/Math/DistSampler.h @@ -17,6 +17,7 @@ #include "Math/WrappedFunction.h" +#include <algorithm> #include <vector> #include <cassert> diff --git a/math/mathcore/inc/Math/Functor.h b/math/mathcore/inc/Math/Functor.h index 8888b2ceea89e..8e6f848eec2c2 100644 --- a/math/mathcore/inc/Math/Functor.h +++ b/math/mathcore/inc/Math/Functor.h @@ -20,8 +20,10 @@ // #include "Math/StaticCheck.h" // #endif +#include <algorithm> #include <memory> #include <functional> +#include <type_traits> #include <vector> namespace ROOT { diff --git a/tree/ntuple/inc/ROOT/RNTupleMetrics.hxx b/tree/ntuple/inc/ROOT/RNTupleMetrics.hxx index 1c931a99430f1..d90da49c06f54 100644 --- a/tree/ntuple/inc/ROOT/RNTupleMetrics.hxx +++ b/tree/ntuple/inc/ROOT/RNTupleMetrics.hxx @@ -30,6 +30,7 @@ #include <memory> #include <ostream> #include <string> +#include <type_traits> #include <vector> #include <utility>