Skip to content

Commit 1b51d23

Browse files
committed
test again
1 parent 5217ded commit 1b51d23

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

inst/include/cpp11/matrix.hpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
#include <iterator>
55
#include <string> // for string
66

7-
#include "cpp11/R.hpp" // for SEXP, SEXPREC, R_xlen_t, INT...
8-
#include "cpp11/r_bool.hpp" // for r_bool
9-
#include "cpp11/r_string.hpp" // for r_string
10-
#include "cpp11/r_vector.hpp" // for r_vector
11-
#include "cpp11/sexp.hpp" // for sexp
7+
#include "cpp11/R.hpp" // for SEXP, SEXPREC, R_xlen_t, INT...
8+
#include "cpp11/attribute_proxy.hpp" // for attribute_proxy
9+
#include "cpp11/r_bool.hpp" // for r_bool
10+
#include "cpp11/r_string.hpp" // for r_string
11+
#include "cpp11/r_vector.hpp" // for r_vector
12+
#include "cpp11/sexp.hpp" // for sexp
1213

1314
namespace cpp11 {
1415

@@ -189,11 +190,11 @@ class matrix : public matrix_slices<S> {
189190

190191
operator SEXP() const { return SEXP(vector_); }
191192

192-
SEXP attr(const char* name) { return vector_.attr(name); }
193+
attribute_proxy<V> attr(const char* name) { return vector_.attr(name); }
193194

194-
SEXP attr(const std::string& name) { return vector_.attr(name); }
195+
attribute_proxy<V> attr(const std::string& name) { return vector_.attr(name); }
195196

196-
SEXP attr(SEXP name) { return vector_.attr(name); }
197+
attribute_proxy<V> attr(SEXP name) { return vector_.attr(name); }
197198

198199
void attr(const char* name, SEXP value) { vector_.attr(name) = value; }
199200

0 commit comments

Comments
 (0)