catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Make operator BenchmarkStats<Duration2> explicit
- Commit
f9ec34ce016ad5b12afc22251b254e93ad7fd038- Author
- Martin Hořeňovský ·
- Parents
96790b1d2335
Changes
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 <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);