Skip to content

Commit 35dc952

Browse files
ellertguitargeek
authored andcommitted
Update ROOT's R interface for Rcpp 1.0.13
1 parent 46eb07a commit 35dc952

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bindings/r/inc/TRInternalFunction.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@ namespace Rcpp {
3131

3232
RCPP_GENERATE_CTOR_ASSIGN(TRInternalFunction_Impl)
3333

34+
#if RCPP_VERSION >= Rcpp_Version(1,0,13)
35+
template <typename OUT, typename... T>
36+
TRInternalFunction_Impl(OUT(*fun)(T...))
37+
{
38+
set(Rcpp::XPtr< Rcpp::CppFunctionN<OUT, T...> >(new Rcpp::CppFunctionN<OUT, T...>(fun), false));
39+
}
40+
#else
3441
#include <TRInternalFunction__ctors.h>
42+
#endif
3543
void update(SEXP) {}
3644
private:
3745

0 commit comments

Comments
 (0)