-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added explicit (const_)string_proxy/SEXP comparisons to resolve ambiguity #372
Conversation
... and tidyr. Thanks for fixing it and submitting a PR while my rev.dep. check is still running! |
Ok, I checked and this fixed readr, readxl, rpg and tidyr. We still have package icd9 failing with:
|
I think add those lines below into
|
Nice work, @thirdwing ! When I looked as @dcdillon Do you want to add this to the PR or shall I just add it after merging? edd@max:/tmp/rcpp-tmp/Rcpp$ diff -u ~/git/rcpp/inst/include/Rcpp/String.h inst/include/Rcpp/String.h
--- /home/edd/git/rcpp/inst/include/Rcpp/String.h 2015-09-08 09:59:23.570918337 -0500
+++ inst/include/Rcpp/String.h 2015-09-09 05:54:04.478869310 -0500
@@ -438,6 +438,14 @@
return strcmp( get_cstring(), other.get_cstring() ) > 0;
}
+ bool operator==( SEXP other ) const {
+ return get_sexp() == other;
+ }
+
+ bool operator!=( SEXP other ) const {
+ return get_sexp() != other;
+ }
+
private:
/** the CHARSXP this String encapsulates */
edd@max:/tmp/rcpp-tmp/Rcpp$ Ah shucks, I'll just do it and then start a new test run ... |
Added explicit (const_)string_proxy/SEXP comparisons to resolve ambiguity
This fixes compile failures in readr, readxl, and rpg