From 465e63dad7733f8e014dc043069b1dc64e7c5e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 4 Apr 2026 23:25:29 +0200 Subject: [PATCH] Do not include chrono_clock.hpp in benchmark_stats_fwd.hpp --- src/catch2/benchmark/detail/catch_benchmark_stats.hpp | 1 + src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/catch2/benchmark/detail/catch_benchmark_stats.hpp b/src/catch2/benchmark/detail/catch_benchmark_stats.hpp index 3633bc9f..e4893aaa 100644 --- a/src/catch2/benchmark/detail/catch_benchmark_stats.hpp +++ b/src/catch2/benchmark/detail/catch_benchmark_stats.hpp @@ -8,6 +8,7 @@ #ifndef CATCH_BENCHMARK_STATS_HPP_INCLUDED #define CATCH_BENCHMARK_STATS_HPP_INCLUDED +#include #include #include // The fwd decl & default specialization needs to be seen by VS2017 before diff --git a/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp b/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp index d59cc9b8..fb9cf684 100644 --- a/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp +++ b/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp @@ -8,14 +8,16 @@ #ifndef CATCH_BENCHMARK_STATS_FWD_HPP_INCLUDED #define CATCH_BENCHMARK_STATS_FWD_HPP_INCLUDED -#include - namespace Catch { + namespace Detail { + struct DummyTemplateArgPlaceholder; + } + // We cannot forward declare the type with default template argument // multiple times, so it is split out into a separate header so that // we can prevent multiple declarations in dependencies - template + template struct BenchmarkStats; } // end namespace Catch