Skip to content

Commit 14b243b

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Don't use std::result_of" into main
2 parents 3970015 + 2ed90a5 commit 14b243b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmds/idlcli/vibrator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ inline auto getService<android::hardware::vibrator::V1_3::IVibrator>(std::string
7474
}
7575

7676
template <typename I>
77-
using shared_ptr = std::result_of_t<decltype(getService<I>)&(std::string)>;
77+
using shared_ptr = std::invoke_result_t<decltype(getService<I>)&, std::string>;
7878

7979
template <typename I>
8080
class HalWrapper {

cmds/lshal/Timeout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace lshal {
3030
// has returned, especially if deadline has been reached. Hence, care must be taken when passing
3131
// data between the background thread and the main thread. See b/311143089.
3232
template<class R, class P, class Function, class I, class... Args>
33-
typename std::result_of<Function(I *, Args...)>::type
33+
typename std::invoke_result<Function, I *, Args...>::type
3434
timeoutIPC(std::chrono::duration<R, P> wait, const sp<I> &interfaceObject, Function &&func,
3535
Args &&... args) {
3636
using ::android::hardware::Status;

0 commit comments

Comments
 (0)