File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
#include < algorithm> // for max_element
8
8
9
- context (" r_vector-C++" ) {
9
+ #ifdef _WIN32
10
+ #include " Rversion.h"
11
+ #define CPP11_HAS_IS_UTILITIES R_VERSION >= R_Version(4 , 0 , 0 )
12
+ #else
13
+ #define CPP11_HAS_IS_UTILITIES 1
14
+ #endif
15
+
16
+ #if CPP11_HAS_IS_UTILITIES
17
+ context (" r_vector-capabilities-C++" ) {
10
18
test_that (" read only vector capabilities" ) {
11
19
using cpp11::integers;
12
20
@@ -71,7 +79,10 @@ context("r_vector-C++") {
71
79
expect_false (std::is_move_assignable<integers::proxy>::value);
72
80
expect_false (std::is_trivially_move_assignable<integers::proxy>::value);
73
81
}
82
+ }
83
+ #endif
74
84
85
+ context (" r_vector-C++" ) {
75
86
test_that (" writable vector temporary isn't leaked (integer) (#338)" ) {
76
87
R_xlen_t before = cpp11::detail::store::count ();
77
88
You can’t perform that action at this time.
0 commit comments