Really fix use of std::result_of when invoke_result is available

Closes #1934
This commit is contained in:
Martin Hořeňovský
2020-05-21 21:39:19 +02:00
parent ddc9f4c61d
commit 77dc8cfc45
5 changed files with 15 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ namespace Catch {
namespace Benchmark {
namespace Detail {
template <typename Clock, typename Fun, typename... Args>
TimingOf<Clock, Fun(Args...)> measure(Fun&& fun, Args&&... args) {
TimingOf<Clock, Fun, Args...> measure(Fun&& fun, Args&&... args) {
auto start = Clock::now();
auto&& r = Detail::complete_invoke(fun, std::forward<Args>(args)...);
auto end = Clock::now();