Skip to content

Commit

Permalink
add missing is_void method to CppFunctionN
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Oct 7, 2024
1 parent e7da623 commit eb944f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/include/Rcpp/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ namespace Rcpp {
}

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

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

0 comments on commit eb944f7

Please sign in to comment.