From f9ec34ce016ad5b12afc22251b254e93ad7fd038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 28 May 2021 23:19:07 +0200 Subject: [PATCH] Make operator BenchmarkStats explicit --- extras/catch_amalgamated.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extras/catch_amalgamated.hpp b/extras/catch_amalgamated.hpp index 7f832413..dd77291a 100644 --- a/extras/catch_amalgamated.hpp +++ b/extras/catch_amalgamated.hpp @@ -950,7 +950,7 @@ namespace Catch { #include namespace Catch { - + struct ITransientExpression; class LazyExpression { @@ -1430,7 +1430,7 @@ namespace Catch { double outlierVariance; template - operator BenchmarkStats() const { + explicit operator BenchmarkStats() const { std::vector samples2; samples2.reserve(samples.size()); for (auto const& sample : samples) { @@ -2575,7 +2575,7 @@ namespace Catch { analysis.outlier_variance, }; } else { - std::vector samples; + std::vector samples; samples.reserve(last - first); Duration mean = Duration(0);