Skip to content

Commit dcd5405

Browse files
Merge pull request #69289 from kateinoigakukun/pr-e0320078658162be890b33406dae59f17cf1f9c0
[Runtime] NFC: Use `std::invoke_result` instead of deprecated `std::result_of`
2 parents 83df2ab + dc176f3 commit dcd5405

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)