Skip to content

Commit 5e7ca2a

Browse files
committed
Small correction
1 parent 2e6cc75 commit 5e7ca2a

File tree

1 file changed

+1
-1
lines changed
  • inst/include/Rcpp/sugar/functions

1 file changed

+1
-1
lines changed

inst/include/Rcpp/sugar/functions/sapply.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct sapply_application_result_of
3737
typedef typename ::std::result_of<Function(typename SugarExpression::stored_type)>::type type;
3838
#else
3939
// since C++17, see https://en.cppreference.com/w/cpp/types/result_of
40-
typedef typename ::std::invoke_result<Function(typename SugarExpression::stored_type)>::type type;
40+
typedef typename ::std::invoke_result<Function, typename SugarExpression::stored_type>::type type;
4141
#endif
4242
#else
4343
typedef typename ::Rcpp::traits::result_of<Function>::type type;

0 commit comments

Comments
 (0)