Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-04-04 23:25:29 +0200
committerMartin Hořeňovský2026-04-05 14:57:05 +0200
commit465e63dad7733f8e014dc043069b1dc64e7c5e75 (patch)
treed1cb70ed6592117f4339fc0a3bd4205284061807 /src
parent34f4f819470dc64c8090859a6bbf9f57760d7b0a (diff)
downloadcatch3-465e63dad7733f8e014dc043069b1dc64e7c5e75.tar.gz
Do not include chrono_clock.hpp in benchmark_stats_fwd.hpp
Diffstat (limited to 'src')
-rw-r--r--src/catch2/benchmark/detail/catch_benchmark_stats.hpp1
-rw-r--r--src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp8
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 <catch2/benchmark/catch_clock.hpp>
#include <catch2/benchmark/catch_estimate.hpp>
#include <catch2/benchmark/catch_outlier_classification.hpp>
// 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 <catch2/benchmark/catch_clock.hpp>
-
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 <typename Duration = Benchmark::FDuration>
+ template <typename Duration = Detail::DummyTemplateArgPlaceholder>
struct BenchmarkStats;
} // end namespace Catch