Skip to content

Commit 6c15ad3

Browse files
committed
add missing is_void method to CppFunctionN
1 parent 96f6213 commit 6c15ad3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/include/Rcpp/Module.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ namespace Rcpp {
112112
}
113113

114114
inline int nargs() { return sizeof...(T); }
115+
inline bool is_void() { return std::is_void<RESULT_TYPE>::value; }
115116
inline void signature(std::string& s, const char* name) { Rcpp::signature<RESULT_TYPE, T...>(s, name); }
116117
inline DL_FUNC get_function_ptr() { return (DL_FUNC)ptr_fun; }
117118

@@ -428,7 +429,7 @@ namespace Rcpp{
428429
return call<decltype(f), CLEANED_RESULT_TYPE, T...>(f, args);
429430
}
430431
inline int nargs() { return sizeof...(T); }
431-
inline bool is_void() { return std::is_void<RESULT_TYPE>::value;}
432+
inline bool is_void() { return std::is_void<RESULT_TYPE>::value; }
432433
inline bool is_const() { return IsConst; }
433434
inline void signature(std::string& s, const char* name) { Rcpp::signature<RESULT_TYPE,T...>(s, name); }
434435
private:

0 commit comments

Comments
 (0)