Skip to content

Commit

Permalink
Small correction
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Feb 2, 2023
1 parent 2e6cc75 commit 5e7ca2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/Rcpp/sugar/functions/sapply.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct sapply_application_result_of
typedef typename ::std::result_of<Function(typename SugarExpression::stored_type)>::type type;
#else
// since C++17, see https://en.cppreference.com/w/cpp/types/result_of
typedef typename ::std::invoke_result<Function(typename SugarExpression::stored_type)>::type type;
typedef typename ::std::invoke_result<Function, typename SugarExpression::stored_type>::type type;
#endif
#else
typedef typename ::Rcpp::traits::result_of<Function>::type type;
Expand Down

0 comments on commit 5e7ca2a

Please sign in to comment.