From b824d06844ab3faf4ddffa036a0ea7ef0eec117b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 8 Aug 2020 14:40:54 +0200 Subject: [PATCH] Fixup missing transitive includes Found after updating to newest MSVC... --- src/catch2/benchmark/detail/catch_stats.cpp | 1 + src/catch2/catch_session.cpp | 1 + src/catch2/interfaces/catch_interfaces_reporter.hpp | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/catch2/benchmark/detail/catch_stats.cpp b/src/catch2/benchmark/detail/catch_stats.cpp index c583f70c..fc9c8e25 100644 --- a/src/catch2/benchmark/detail/catch_stats.cpp +++ b/src/catch2/benchmark/detail/catch_stats.cpp @@ -13,6 +13,7 @@ #include #include +#include #include diff --git a/src/catch2/catch_session.cpp b/src/catch2/catch_session.cpp index 05cf6bd1..d163aaf8 100644 --- a/src/catch2/catch_session.cpp +++ b/src/catch2/catch_session.cpp @@ -21,6 +21,7 @@ #include #include +#include #include #include diff --git a/src/catch2/interfaces/catch_interfaces_reporter.hpp b/src/catch2/interfaces/catch_interfaces_reporter.hpp index 4d424c03..a8cbbb5d 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.hpp @@ -25,7 +25,6 @@ #include #include #include -#include namespace Catch { @@ -164,7 +163,9 @@ namespace Catch { operator BenchmarkStats() const { std::vector samples2; samples2.reserve(samples.size()); - std::transform(samples.begin(), samples.end(), std::back_inserter(samples2), [](Duration d) { return Duration2(d); }); + for (auto const& sample : samples) { + samples2.push_back(Duration2(sample)); + } return { info, std::move(samples2),