We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3c2f92 commit a993262Copy full SHA for a993262
1 file changed
inst/include/Rcpp/vector/Vector.h
@@ -135,11 +135,11 @@ class Vector :
135
inline NameProxy at( const std::string& name ){
136
return NameProxy( *this, name ) ;
137
}
138
- inline NameProxy at( const std::string& name ) const {
139
- return NameProxy( *this, name ) ;
+ inline const_NameProxy at( const std::string& name ) const {
+ return const_NameProxy( *this, name ) ;
140
141
- inline NameProxy operator[]( const std::string& name ) const {
142
- return NameProxy( const_cast<Vector&>(*this), name ) ;
+ inline const_NameProxy operator[]( const std::string& name ) const {
143
144
145
Vector& sort(){
0 commit comments