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.
2 parents 83df2ab + dc176f3 commit dcd5405Copy full SHA for dcd5405
include/swift/ABI/CompactFunctionPointer.h
@@ -48,7 +48,7 @@ class AbsoluteFunctionPointer {
48
}
49
50
template <typename... ArgTy>
51
- typename std::result_of<T *(ArgTy...)>::type operator()(ArgTy... arg) const {
+ typename std::invoke_result<T *(ArgTy...)>::type operator()(ArgTy... arg) const {
52
static_assert(std::is_function<T>::value,
53
"T must be an explicit function type");
54
return this->get()(std::forward<ArgTy>(arg)...);
0 commit comments