File tree Expand file tree Collapse file tree 5 files changed +6
-119
lines changed
Expand file tree Collapse file tree 5 files changed +6
-119
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ namespace Rcpp{
160160 }
161161
162162 inline bool not_equal (const STORAGE& lhs, const STORAGE& rhs) {
163- return ! ::Rcpp::traits::equal_type <STORAGE>()(lhs, rhs);
163+ return ! ::Rcpp::traits::NAEquals <STORAGE>()(lhs, rhs);
164164 }
165165
166166 bool add_value (int i){
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class Table {
7878 }
7979
8080private:
81- typedef RCPP_UNORDERED_MAP<STORAGE, int , ::Rcpp::traits::comparator_type <STORAGE> >HASH ;
81+ typedef RCPP_UNORDERED_MAP<STORAGE, int , ::Rcpp::traits::NAComparator <STORAGE> >HASH ;
8282 typedef CountInserter<HASH,STORAGE> Inserter ;
8383 HASH hash ;
8484};
@@ -113,7 +113,7 @@ class Table {
113113 typedef CountInserter<HASH,STORAGE> Inserter ;
114114 HASH hash ;
115115
116- typedef std::map<STORAGE, int , ::Rcpp::traits::comparator_type <STORAGE> > SORTED_MAP ;
116+ typedef std::map<STORAGE, int , ::Rcpp::traits::NAComparator <STORAGE> > SORTED_MAP ;
117117 SORTED_MAP map ;
118118
119119};
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3838#include < Rcpp/traits/storage_type.h>
3939#include < Rcpp/traits/r_sexptype_traits.h>
4040#include < Rcpp/traits/storage_type.h>
41- #include < Rcpp/traits/comparator_type.h>
41+ #include < Rcpp/traits/NAComparator.h>
42+ #include < Rcpp/traits/NAEquals.h>
4243#include < Rcpp/traits/r_type_traits.h>
4344#include < Rcpp/traits/un_pointer.h>
4445#include < Rcpp/traits/is_pointer.h>
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ class Vector :
247247 std::sort (
248248 start,
249249 start + size (),
250- typename traits::comparator_type <typename traits::storage_type<RTYPE>::type >()
250+ typename traits::NAComparator <typename traits::storage_type<RTYPE>::type >()
251251 ) ;
252252 return *this ;
253253 }
You can’t perform that action at this time.
0 commit comments