Skip to content

Commit dc176f3

Browse files
[Runtime] NFC: Use std::invoke_result instead of deprecated std::result_of
1 parent 41dc466 commit dc176f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/ABI/CompactFunctionPointer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AbsoluteFunctionPointer {
4848
}
4949

5050
template <typename... ArgTy>
51-
typename std::result_of<T *(ArgTy...)>::type operator()(ArgTy... arg) const {
51+
typename std::invoke_result<T *(ArgTy...)>::type operator()(ArgTy... arg) const {
5252
static_assert(std::is_function<T>::value,
5353
"T must be an explicit function type");
5454
return this->get()(std::forward<ArgTy>(arg)...);

0 commit comments

Comments
 (0)