Skip to content

Commit 3c4ef8e

Browse files
work around RCPP_NO_SUGAR
1 parent bf1982f commit 3c4ef8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/include/Rcpp/platform/solaris.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ namespace traits{
1212
template <typename T> struct is_convertible< std::vector<T>, SEXP> : public false_type{} ;
1313
template <> struct is_convertible<Range,SEXP> : public false_type{} ;
1414

15+
#if !defined(RCPP_NO_SUGAR)
1516
template <int RTYPE, bool NA>
1617
struct is_convertible< sugar::Minus_Vector_Primitive< RTYPE, NA, Vector<RTYPE> >, SEXP> : public false_type{} ;
1718

1819
template <int RTYPE, bool NA>
1920
struct is_convertible< sugar::Plus_Vector_Primitive< RTYPE, NA, Vector<RTYPE> >, SEXP> : public false_type{} ;
21+
#endif
2022

2123
}
2224
}

0 commit comments

Comments
 (0)