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 <catch2/internal/catch_compiler_capabilities.hpp>
#include <cassert> #include <cassert>
#include <iterator>
#include <random> #include <random>

View File

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

View File

@ -25,7 +25,6 @@
#include <vector> #include <vector>
#include <iosfwd> #include <iosfwd>
#include <map> #include <map>
#include <algorithm>
namespace Catch { namespace Catch {
@ -164,7 +163,9 @@ namespace Catch {
operator BenchmarkStats<Duration2>() const { operator BenchmarkStats<Duration2>() const {
std::vector<Duration2> samples2; std::vector<Duration2> samples2;
samples2.reserve(samples.size()); 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 { return {
info, info,
std::move(samples2), std::move(samples2),