@@ -86,7 +86,7 @@ namespace Rcpp{
8686#include < Rcpp/module/CppFunction.h>
8787#include < Rcpp/module/get_return_type.h>
8888
89- #if defined(HAS_VARIADIC_TEMPLATES) || defined(RCPP_USING_CXX11)
89+ #if defined(HAS_VARIADIC_TEMPLATES)
9090namespace Rcpp {
9191 template <typename RESULT_TYPE, typename ... T>
9292 inline void signature (std::string& s, const char * name) {
@@ -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
@@ -176,7 +177,7 @@ namespace Rcpp{
176177 private:
177178 ParentMethod* parent_method_pointer ;
178179 } ;
179- #if defined(HAS_VARIADIC_TEMPLATES) || defined(RCPP_USING_CXX11)
180+ #if defined(HAS_VARIADIC_TEMPLATES)
180181 template <typename ... T>
181182 inline void ctor_signature (std::string& s, const std::string& classname) {
182183 s.assign (classname);
@@ -380,7 +381,7 @@ namespace Rcpp{
380381
381382 } ;
382383
383- #if defined(HAS_VARIADIC_TEMPLATES) || defined(RCPP_USING_CXX11)
384+ #if defined(HAS_VARIADIC_TEMPLATES)
384385 template <bool IsConst,typename Class, typename RESULT_TYPE, typename ... T>
385386 class CppMethodImplN : public CppMethod <Class> {
386387 public:
@@ -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:
@@ -551,7 +552,7 @@ namespace Rcpp{
551552 } ;
552553}
553554
554- #if defined(HAS_VARIADIC_TEMPLATES) || defined(RCPP_USING_CXX11)
555+ #if defined(HAS_VARIADIC_TEMPLATES)
555556namespace Rcpp {
556557 template <typename RESULT_TYPE, typename ... T>
557558 void function (const char * name_, RESULT_TYPE (*fun)(T... t), const char* docstring = 0) {
0 commit comments