Skip to content

Commit 8ba2d7b

Browse files
committed
re-add support for functions without argument specification
1 parent 619432f commit 8ba2d7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/include/Rcpp/traits/result_of.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ struct result_of<T>{
4343
typename T::result_type type ;
4444
} ;
4545

46+
template <typename RESULT_TYPE, typename... Args>
47+
struct result_of< RESULT_TYPE (*)(Args...) >{
48+
typedef RESULT_TYPE type ;
49+
} ;
50+
4651
}
4752
}
4853

0 commit comments

Comments
 (0)