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 8755130 commit a03101aCopy full SHA for a03101a
bindings/profilers/wall.cc
@@ -19,6 +19,7 @@
19
#include <limits>
20
#include <memory>
21
#include <mutex>
22
+#include <type_traits>
23
#include <vector>
24
25
#include <nan.h>
@@ -192,7 +193,7 @@ class ProtectedProfilerMap {
192
193
using ProfilerMap = std::unordered_map<const Isolate*, WallProfiler*>;
194
195
template <typename F>
- typename std::result_of<F(ProfilerMap*)>::type UpdateProfilers(F updateFn) {
196
+ std::invoke_result_t<F, ProfilerMap*> UpdateProfilers(F updateFn) {
197
// use mutex to prevent two isolates of updating profilers concurrently
198
std::lock_guard<std::mutex> lock(update_mutex_);
199
0 commit comments