Skip to content
Merged
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
7 changes: 7 additions & 0 deletions inst/include/Rcpp/vector/const_string_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ namespace internal{
return strcmp( begin(), other.begin() ) != 0 ;
}

bool operator==( SEXP other ) const {
return get() == other;
}

bool operator!=( SEXP other ) const {
return get() != other;
}

private:
static std::string buffer ;
Expand Down
8 changes: 8 additions & 0 deletions inst/include/Rcpp/vector/string_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ namespace internal{
return strcmp( begin(), other.begin() ) != 0 ;
}

bool operator==( SEXP other ) const {
return get() == other;
}

bool operator!=( SEXP other ) const {
return get() != other;
}


private:
static std::string buffer ;
Expand Down