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