| 37 | |
| 38 | template <typename RESULT_TYPE, typename... Args> |
| 39 | InternalFunction_Impl(const std::function<RESULT_TYPE(Args...)> &fun) { |
| 40 | set( |
| 41 | XPtr<Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction<RESULT_TYPE, Args...> >( |
| 42 | new Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction<RESULT_TYPE, Args...>(fun), |
| 43 | false |
| 44 | ) |
| 45 | ); |
| 46 | } |
| 47 | template <typename RESULT_TYPE, typename... T> |
| 48 | InternalFunction_Impl(RESULT_TYPE (*fun)(T...)) { |
| 49 | set(XPtr<CppFunctionN<RESULT_TYPE, T...> >(new CppFunctionN<RESULT_TYPE, T...>(fun), true)); |
nothing calls this directly
no outgoing calls
no test coverage detected