Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-28 23:19:07 +0200
committerMartin Hořeňovský2021-05-28 23:19:07 +0200
commitf9ec34ce016ad5b12afc22251b254e93ad7fd038 (patch)
treeab0b4d94f44ae9d5b60c204b0c2bc31ab4d61a28
parent96790b1d2335f3ff8b941b3598f3f1028f5d09f9 (diff)
downloadcatch3-f9ec34ce016ad5b12afc22251b254e93ad7fd038.tar.gz
Make operator BenchmarkStats<Duration2> explicit
-rw-r--r--extras/catch_amalgamated.hpp6
1 files 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);