Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2026-11-29 Simon Urbanek <simon.urbanek@R-project.org>

* inst/include/Rcpp/vector/const_string_proxy.h: Declare operator==
and operator!= as const to fix ambiguities failing to compile with
Apple clang (#1537)

2026-11-27 David Seifert <soap@gentoo.org>

* inst/include/Rcpp/internal/wrap.h: Comment out parameter to avoid
Expand Down
8 changes: 4 additions & 4 deletions inst/include/Rcpp/vector/const_string_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ namespace internal{
inline bool empty() const { return *begin() == '\0' ; }
inline reference operator[]( R_xlen_t n ){ return *( begin() + n ) ; }

bool operator==( const char* other){
bool operator==( const char* other) const {
return strcmp( begin(), other ) == 0 ;
}
bool operator!=( const char* other){
bool operator!=( const char* other) const {
return strcmp( begin(), other ) != 0 ;
}

bool operator==( const const_string_proxy& other){
bool operator==( const const_string_proxy& other) const {
return strcmp( begin(), other.begin() ) == 0 ;
}
bool operator!=( const const_string_proxy& other){
bool operator!=( const const_string_proxy& other) const {
return strcmp( begin(), other.begin() ) != 0 ;
}

Expand Down