File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments