@@ -26,10 +26,10 @@ namespace Rcpp {
26
26
namespace traits {
27
27
28
28
template <bool >
29
- struct static_assertion ;
29
+ struct allowed_matrix_type ;
30
30
31
31
template <>
32
- struct static_assertion <true > {};
32
+ struct allowed_matrix_type <true > {};
33
33
34
34
template <typename T>
35
35
class one_type {
@@ -90,7 +90,7 @@ class eye {
90
90
traits::is_arithmetic<stored_type>::value ||
91
91
traits::same_type<stored_type, Rcomplex>::value;
92
92
93
- traits::static_assertion <enabled> allowed_matrix_type ;
93
+ ( void ) sizeof ( traits::allowed_matrix_type <enabled>) ;
94
94
95
95
typedef traits::one_type<stored_type> one_type;
96
96
@@ -115,7 +115,7 @@ class ones {
115
115
traits::is_arithmetic<stored_type>::value ||
116
116
traits::same_type<stored_type, Rcomplex>::value;
117
117
118
- traits::static_assertion <enabled> allowed_matrix_type ;
118
+ ( void ) sizeof ( traits::allowed_matrix_type <enabled>) ;
119
119
120
120
typedef traits::one_type<stored_type> one_type;
121
121
@@ -143,7 +143,7 @@ class zeros {
143
143
traits::is_arithmetic<stored_type>::value ||
144
144
traits::same_type<stored_type, Rcomplex>::value;
145
145
146
- traits::static_assertion <enabled> allowed_matrix_type ;
146
+ ( void ) sizeof ( traits::allowed_matrix_type <enabled>) ;
147
147
148
148
typedef traits::zero_type<stored_type> zero_type;
149
149
0 commit comments