Skip to content

Commit bf34e7b

Browse files
author
Florian Plaza Oñate
committed
Uncomment at accessors
1 parent c9651e5 commit bf34e7b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

inst/include/Rcpp/vector/Matrix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ class Matrix : public Vector<RTYPE, StoragePolicy>, public MatrixBase<RTYPE, tru
134134
inline const_Proxy operator()( const size_t& i, const size_t& j) const {
135135
return static_cast< const Vector<RTYPE>* >( this )->operator[]( offset( i, j ) ) ;
136136
}
137-
/*
137+
138138
inline Proxy at( const size_t& i, const size_t& j) {
139139
return static_cast< Vector<RTYPE>* >( this )->operator()( i, j ) ;
140140
}
141141
inline const_Proxy at( const size_t& i, const size_t& j) const {
142142
return static_cast< const Vector<RTYPE>* >( this )->operator()( i, j ) ;
143143
}
144-
*/
144+
145145
inline Row operator()( int i, internal::NamedPlaceHolder ) {
146146
return Row( *this, i ) ;
147147
}

inst/include/Rcpp/vector/Vector.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class Vector :
318318

319319
inline iterator begin() { return cache.get() ; }
320320
inline iterator end() { return cache.get() + size() ; }
321-
inline const_iterator begin() const{ return cache.get_const() ; }
321+
inline const_iterator begin() const{ return cache.get_const() ; }
322322
inline const_iterator end() const{ return cache.get_const() + size() ; }
323323

324324
inline Proxy operator[]( R_xlen_t i ){ return cache.ref(i) ; }
@@ -330,14 +330,14 @@ class Vector :
330330
inline const_Proxy operator()( const size_t& i) const {
331331
return cache.ref( offset(i) ) ;
332332
}
333-
/*
333+
334334
inline Proxy at( const size_t& i) {
335335
return cache.ref( offset(i) ) ;
336336
}
337337
inline const_Proxy at( const size_t& i) const {
338338
return cache.ref( offset(i) ) ;
339339
}
340-
*/
340+
341341
inline Proxy operator()( const size_t& i, const size_t& j) {
342342
return cache.ref( offset(i,j) ) ;
343343
}

0 commit comments

Comments
 (0)