Fixup missing transitive includes

Found after updating to newest MSVC...
This commit is contained in:
Martin Hořeňovský 2020-08-08 14:40:54 +02:00
parent e7aa432850
commit b824d06844
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
3 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,7 @@
#include <catch2/internal/catch_compiler_capabilities.hpp>
#include <cassert>
#include <iterator>
#include <random>

View File

@ -21,6 +21,7 @@
#include <catch2/internal/catch_windows_h_proxy.hpp>
#include <catch2/reporters/catch_reporter_listening.hpp>
#include <algorithm>
#include <iomanip>
#include <set>

View File

@ -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),