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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-08-08 14:40:54 +0200
committerMartin Hořeňovský2020-08-10 20:28:14 +0200
commitb824d06844ab3faf4ddffa036a0ea7ef0eec117b (patch)
treeb96867ef62b41786e69d393902b9a26ea56f41df /src/catch2/interfaces
parente7aa432850c34557e857d8675bff9b3f03de41b8 (diff)
downloadcatch3-b824d06844ab3faf4ddffa036a0ea7ef0eec117b.tar.gz
Fixup missing transitive includes
Found after updating to newest MSVC...
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_reporter.hpp5
1 files changed, 3 insertions, 2 deletions
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 <vector>
#include <iosfwd>
#include <map>
-#include <algorithm>
namespace Catch {
@@ -164,7 +163,9 @@ namespace Catch {
operator BenchmarkStats<Duration2>() const {
std::vector<Duration2> 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),