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.
std::invoke_result
std::result_of
1 parent 41dc466 commit dc176f3Copy full SHA for dc176f3
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