Skip to content

Commit 465e63d

Browse files
committed
Do not include chrono_clock.hpp in benchmark_stats_fwd.hpp
1 parent 34f4f81 commit 465e63d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/catch2/benchmark/detail/catch_benchmark_stats.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#ifndef CATCH_BENCHMARK_STATS_HPP_INCLUDED
99
#define CATCH_BENCHMARK_STATS_HPP_INCLUDED
1010

11+
#include <catch2/benchmark/catch_clock.hpp>
1112
#include <catch2/benchmark/catch_estimate.hpp>
1213
#include <catch2/benchmark/catch_outlier_classification.hpp>
1314
// The fwd decl & default specialization needs to be seen by VS2017 before

src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
#ifndef CATCH_BENCHMARK_STATS_FWD_HPP_INCLUDED
99
#define CATCH_BENCHMARK_STATS_FWD_HPP_INCLUDED
1010

11-
#include <catch2/benchmark/catch_clock.hpp>
12-
1311
namespace Catch {
1412

13+
namespace Detail {
14+
struct DummyTemplateArgPlaceholder;
15+
}
16+
1517
// We cannot forward declare the type with default template argument
1618
// multiple times, so it is split out into a separate header so that
1719
// we can prevent multiple declarations in dependencies
18-
template <typename Duration = Benchmark::FDuration>
20+
template <typename Duration = Detail::DummyTemplateArgPlaceholder>
1921
struct BenchmarkStats;
2022

2123
} // end namespace Catch

0 commit comments

Comments
 (0)