Skip to content

Commit 9bdc5dd

Browse files
committed
Update C++ usage to match C++17
1 parent cef408d commit 9bdc5dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Performance/Harness.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Harness {
9494
* from the main results.
9595
*/
9696
template <typename Function>
97-
typename std::result_of<Function()>::type measure_subtask(
97+
typename std::invoke_result<Function>::type measure_subtask(
9898
const std::string& name, Function&& func);
9999

100100
/**
@@ -171,7 +171,7 @@ void Harness::measure(const Function& func) {
171171
}
172172

173173
template <typename Function>
174-
typename std::result_of<Function()>::type Harness::measure_subtask(
174+
typename std::invoke_result<Function>::type Harness::measure_subtask(
175175
const std::string& name, Function&& func) {
176176
subtask_names.push_back(name);
177177
using std::chrono::steady_clock;

0 commit comments

Comments
 (0)