diff options
| author | Martin Hořeňovský | 2020-08-08 14:40:54 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-08-10 20:28:14 +0200 |
| commit | b824d06844ab3faf4ddffa036a0ea7ef0eec117b (patch) | |
| tree | b96867ef62b41786e69d393902b9a26ea56f41df /src/catch2/interfaces | |
| parent | e7aa432850c34557e857d8675bff9b3f03de41b8 (diff) | |
| download | catch3-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.hpp | 5 |
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), |