Make operator BenchmarkStats<Duration2> explicit

This commit is contained in:
Martin Hořeňovský 2021-05-28 23:19:07 +02:00
parent 96790b1d23
commit f9ec34ce01
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -950,7 +950,7 @@ namespace Catch {
#include <iosfwd>
namespace Catch {
struct ITransientExpression;
class LazyExpression {
@ -1430,7 +1430,7 @@ namespace Catch {
double outlierVariance;
template <typename Duration2>
operator BenchmarkStats<Duration2>() const {
explicit operator BenchmarkStats<Duration2>() const {
std::vector<Duration2> samples2;
samples2.reserve(samples.size());
for (auto const& sample : samples) {
@ -2575,7 +2575,7 @@ namespace Catch {
analysis.outlier_variance,
};
} else {
std::vector<Duration> samples;
std::vector<Duration> samples;
samples.reserve(last - first);
Duration mean = Duration(0);