File tree 2 files changed +7
-14
lines changed
2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -522,18 +522,12 @@ namespace Rcpp {
522
522
* quite a cryptic message
523
523
*/
524
524
template <typename T>
525
- inline SEXP wrap_dispatch_unknown_iterable (const T& object, ::Rcpp::traits::false_type) {
526
- RCPP_DEBUG_1 (" wrap_dispatch_unknown_iterable<%s>(., false )" , DEMANGLE (T))
527
- // here we know that T is not convertible to SEXP
528
- #ifdef HAS_STATIC_ASSERT
529
- static_assert (!sizeof (T), " cannot convert type to SEXP" );
530
- #else
531
- // leave the cryptic message
532
- SEXP x = object;
533
- return x;
534
- #endif
535
- return R_NilValue; // -Wall
536
- }
525
+ inline SEXP wrap_dispatch_unknown_iterable (const T& object, ::Rcpp::traits::false_type) {
526
+ RCPP_DEBUG_1 (" wrap_dispatch_unknown_iterable<%s>(., false )" , DEMANGLE (T))
527
+ // here we know that T is not convertible to SEXP
528
+ static_assert (!sizeof (T), " cannot convert type to SEXP" );
529
+ return R_NilValue; // -Wall
530
+ }
537
531
538
532
template <typename T>
539
533
inline SEXP wrap_dispatch_unknown_iterable__logical (const T& object, ::Rcpp::traits::true_type) {
@@ -936,7 +930,7 @@ namespace Rcpp {
936
930
if (v != NULL )
937
931
return Rf_mkString (v);
938
932
else
939
- return R_NilValue; // #nocov
933
+ return R_NilValue; // #nocov
940
934
}
941
935
942
936
/* *
Original file line number Diff line number Diff line change 40
40
// C++11 features -- that used to be carefully tested for or worked around via CXX0X / TR1
41
41
#define RCPP_USING_CXX11
42
42
#define HAS_VARIADIC_TEMPLATES
43
- #define HAS_STATIC_ASSERT
44
43
#include < cmath>
45
44
#include < initializer_list>
46
45
#include < unordered_map>
You can’t perform that action at this time.
0 commit comments