Skip to content

Commit b919f41

Browse files
committed
try to fix build error on gh actions
1 parent 1b51d23 commit b919f41

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

inst/include/cpp11/matrix.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,13 @@ class matrix : public matrix_slices<S> {
190190

191191
operator SEXP() const { return SEXP(vector_); }
192192

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

195-
attribute_proxy<V> attr(const std::string& name) { return vector_.attr(name); }
195+
attribute_proxy<V> attr(const std::string& name) {
196+
return attribute_proxy<V>(vector_, name.c_str());
197+
}
196198

197-
attribute_proxy<V> attr(SEXP name) { return vector_.attr(name); }
199+
attribute_proxy<V> attr(SEXP name) { return attribute_proxy<V>(vector_, name); }
198200

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

0 commit comments

Comments
 (0)