We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef408d commit 9bdc5ddCopy full SHA for 9bdc5dd
Performance/Harness.h
@@ -94,7 +94,7 @@ class Harness {
94
* from the main results.
95
*/
96
template <typename Function>
97
- typename std::result_of<Function()>::type measure_subtask(
+ typename std::invoke_result<Function>::type measure_subtask(
98
const std::string& name, Function&& func);
99
100
/**
@@ -171,7 +171,7 @@ void Harness::measure(const Function& func) {
171
}
172
173
174
-typename std::result_of<Function()>::type Harness::measure_subtask(
+typename std::invoke_result<Function>::type Harness::measure_subtask(
175
const std::string& name, Function&& func) {
176
subtask_names.push_back(name);
177
using std::chrono::steady_clock;
0 commit comments