Skip to content

Commit

Permalink
Apply various codemods from fbcode to Cinder repo
Browse files Browse the repository at this point in the history
Summary: doeswhatitsaysonthetin

Reviewed By: brittanyrey

Differential Revision: D57296741

fbshipit-source-id: 5a8f602ea216c91eb9933cd338708890e3609632
  • Loading branch information
jbower-fb authored and facebook-github-bot committed May 13, 2024
1 parent db15f5d commit c1cbb05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ struct InvokeMethodWithoutArgsAction {
Class* const obj_ptr;
const MethodPtr method_ptr;

using ReturnType = typename std::result_of<MethodPtr(Class*)>::type;
using ReturnType = typename std::invoke_result<MethodPtr, Class*>::type;

template <typename... Args>
ReturnType operator()(const Args&...) const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ template< class F, class... ArgTypes>
#if PHMAP_HAVE_CC17
using invoke_result_t = typename std::invoke_result_t<F, ArgTypes...>;
#else
using invoke_result_t = typename std::result_of<F(ArgTypes...)>::type;
using invoke_result_t = typename std::invoke_result<F, ArgTypes...>::type;
#endif

namespace type_traits_internal {
Expand Down

0 comments on commit c1cbb05

Please sign in to comment.