catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Do not include chrono_clock.hpp in benchmark_stats_fwd.hpp
- Commit
465e63dad7733f8e014dc043069b1dc64e7c5e75- Author
- Martin Hořeňovský ·
- Parents
34f4f819470d
Changes
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 <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