We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b4ade commit a91c3edCopy full SHA for a91c3ed
inst/include/cpp11/complexes.hpp
@@ -11,6 +11,12 @@
11
#include "cpp11/r_vector.hpp" // for r_vector, r_vector<>::proxy
12
#include "cpp11/sexp.hpp" // for sexp
13
14
+// Define SET_COMPLEX_ELT if not defined
15
+// for compatibility with older R versions, such as ubuntu 20.04 oldrel-4
16
+#ifndef SET_COMPLEX_ELT
17
+#define SET_COMPLEX_ELT(x, i, v) (COMPLEX(x)[i] = v)
18
+#endif
19
+
20
namespace cpp11 {
21
22
// Specializations for complex numbers
0 commit comments