Skip to content

Commit 44de8b2

Browse files
committed
fix ambiguities in const_string_proxy.h failing in clang
1 parent 279801e commit 44de8b2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎inst/include/Rcpp/vector/const_string_proxy.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ namespace internal{
9797
inline bool empty() const { return *begin() == '\0' ; }
9898
inline reference operator[]( R_xlen_t n ){ return *( begin() + n ) ; }
9999

100-
bool operator==( const char* other){
100+
bool operator==( const char* other) const {
101101
return strcmp( begin(), other ) == 0 ;
102102
}
103-
bool operator!=( const char* other){
103+
bool operator!=( const char* other) const {
104104
return strcmp( begin(), other ) != 0 ;
105105
}
106106

107-
bool operator==( const const_string_proxy& other){
107+
bool operator==( const const_string_proxy& other) const {
108108
return strcmp( begin(), other.begin() ) == 0 ;
109109
}
110-
bool operator!=( const const_string_proxy& other){
110+
bool operator!=( const const_string_proxy& other) const {
111111
return strcmp( begin(), other.begin() ) != 0 ;
112112
}
113113

0 commit comments

Comments
 (0)