We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This fails because of missing std::hash<String>.
std::hash<String>
// [[Rcpp::export]] IntegerVector matchCpp( CharacterVector x, CharacterVector table){ // first train an unordered_map std::unordered_map<String,int> map ; for( int i=0; i<table.size(); i++){ String s = table[i] ; map[s] = i +1 ; } // now lookup int n = x.size() ; IntegerVector out(n) ; for( int i=0; i<n; i++){ String s = x[i] ; out[i] = map[s]->second ; } return out ; }
The text was updated successfully, but these errors were encountered:
std::hash<Rcpp::String> to close RcppCore#84
f190876
14adf67
Merge pull request #408 from thirdwing/master
0c598bc
std::hash<Rcpp::String>. close #84
Successfully merging a pull request may close this issue.
This fails because of missing
std::hash<String>
.The text was updated successfully, but these errors were encountered: