-
-
Notifications
You must be signed in to change notification settings - Fork 218
Closed
Description
I see:
> Rcpp:::capabilities()["variadic templates"]
variadic templates
FALSE
This is checked here:
Lines 174 to 178 in dfa585d
#ifdef HAS_VARIADIC_TEMPLATES | |
LOGICAL(cap)[0] = TRUE; | |
#else | |
LOGICAL(cap)[0] = FALSE; | |
#endif |
But HAS_VARIADIC_TEMPLATES
is never set (note that the defines are commented out):
Rcpp/inst/include/Rcpp/platform/compiler.h
Lines 66 to 97 in dfa585d
// Check C++0x/11 features | |
#if defined(__INTEL_COMPILER) | |
#if __cplusplus >= 201103L | |
#define RCPP_USING_CXX11 | |
#if __INTEL_COMPILER >= 1210 | |
// #define HAS_VARIADIC_TEMPLATES | |
#endif | |
#if __INTEL_COMPILER >= 1100 | |
#define HAS_STATIC_ASSERT | |
#endif | |
#endif | |
#elif defined(__clang__) | |
#if __cplusplus >= 201103L | |
#define RCPP_USING_CXX11 | |
#if __has_feature(cxx_variadic_templates) | |
// #define HAS_VARIADIC_TEMPLATES | |
#endif | |
#if __has_feature(cxx_static_assert) | |
#define HAS_STATIC_ASSERT | |
#endif | |
#endif | |
#elif defined(__GNUC__) | |
#ifdef __GXX_EXPERIMENTAL_CXX0X__ | |
#if GCC_VERSION >= 40300 | |
// #define HAS_VARIADIC_TEMPLATES | |
#define HAS_STATIC_ASSERT | |
#endif | |
#endif | |
#if GCC_VERSION >= 40800 && __cplusplus >= 201103L | |
#define RCPP_USING_CXX11 | |
#endif | |
#endif |
eddelbuettel and kevinushey
Metadata
Metadata
Assignees
Labels
No labels