diff --git a/include/nonius/detail/measure.h++ b/include/nonius/detail/measure.h++ index 0bac5dd..510503f 100644 --- a/include/nonius/detail/measure.h++ +++ b/include/nonius/detail/measure.h++ @@ -22,7 +22,7 @@ namespace nonius { namespace detail { - template + template TimingOf measure(Fun&& fun, Args&&... args) { auto start = Clock::now(); auto&& r = detail::complete_invoke(fun, std::forward(args)...); diff --git a/include/nonius/detail/run_for_at_least.h++ b/include/nonius/detail/run_for_at_least.h++ index 7e14944..d741b1b 100644 --- a/include/nonius/detail/run_for_at_least.h++ +++ b/include/nonius/detail/run_for_at_least.h++ @@ -47,7 +47,7 @@ namespace nonius { } }; - template + template TimingOf)> run_for_at_least(const parameters& params, Duration how_long, int seed, Fun&& fun) { auto iters = seed; while(iters < (1 << 30)) { diff --git a/include/nonius/environment.h++ b/include/nonius/environment.h++ index e6be6df..d92e6d0 100644 --- a/include/nonius/environment.h++ +++ b/include/nonius/environment.h++ @@ -28,7 +28,7 @@ namespace nonius { return { mean, outliers }; } }; - template + template struct environment { using clock_type = Clock; environment_estimate> clock_resolution; diff --git a/include/nonius/go.h++ b/include/nonius/go.h++ index a537608..b4994c1 100644 --- a/include/nonius/go.h++ +++ b/include/nonius/go.h++ @@ -159,7 +159,7 @@ namespace nonius { } template void go(configuration cfg, Iterator first, Iterator last, reporter&& rep) { - go(cfg, first, last, rep); + go(cfg, first, last, rep); } struct no_such_reporter : virtual std::exception { char const* what() const NONIUS_NOEXCEPT override { @@ -170,8 +170,8 @@ namespace nonius { void go(configuration cfg, benchmark_registry& benchmarks = global_benchmark_registry(), reporter_registry& reporters = global_reporter_registry()) { auto it = reporters.find(cfg.reporter); if(it == reporters.end()) throw no_such_reporter(); - validate_benchmarks(benchmarks.begin(), benchmarks.end()); - go(cfg, benchmarks.begin(), benchmarks.end(), *it->second); + validate_benchmarks(benchmarks.begin(), benchmarks.end()); + go(cfg, benchmarks.begin(), benchmarks.end(), *it->second); } } // namespace nonius