Skip to content

Commit 4dc773b

Browse files
less SFINAE noise on solaris
1 parent d255a7b commit 4dc773b

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

inst/include/Rcpp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Rcpp.h: R/C++ interface class library
44
//
55
// Copyright (C) 2008 - 2009 Dirk Eddelbuettel
6-
// Copyright (C) 2009 - 2013 Dirk Eddelbuettel and Romain Francois
6+
// Copyright (C) 2009 - 2014 Dirk Eddelbuettel and Romain Francois
77
//
88
// This file is part of Rcpp.
99
//
@@ -76,6 +76,6 @@
7676
// 'see' all versions of wrap
7777
#include <Rcpp/internal/wrap_end.h>
7878

79+
#include <Rcpp/platform/solaris.h>
7980
#include <Rcpp/api/meat/meat.h>
80-
8181
#endif

inst/include/Rcpp/platform/solaris.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (C) 2014 Romain Francois
2+
3+
#ifndef Rcpp__platform__solaris_h
4+
#define Rcpp__platform__solaris_h
5+
6+
#ifdef __SUNPRO_CC
7+
8+
namespace Rcpp {
9+
namespace traits{
10+
11+
12+
template <typename T> struct is_convertible< std::vector<T>, SEXP> : public false_type{} ;
13+
template <> struct is_convertible<Range,SEXP> : public false_type{} ;
14+
15+
template <int RTYPE, bool NA>
16+
struct is_convertible< sugar::Minus_Vector_Primitive< RTYPE, NA, Vector<RTYPE> >, SEXP> : public false_type{} ;
17+
18+
template <int RTYPE, bool NA>
19+
struct is_convertible< sugar::Plus_Vector_Primitive< RTYPE, NA, Vector<RTYPE> >, SEXP> : public false_type{} ;
20+
21+
}
22+
}
23+
24+
25+
#endif
26+
27+
#endif

0 commit comments

Comments
 (0)