Skip to content

Commit 299095d

Browse files
committed
use MapCompare for sorting
1 parent 45df884 commit 299095d

File tree

1 file changed

+1
-1
lines changed
  • inst/include/Rcpp/sugar/functions

1 file changed

+1
-1
lines changed

inst/include/Rcpp/sugar/functions/table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Table {
114114

115115
private:
116116
typedef RCPP_UNORDERED_MAP<STORAGE, int> HASH ;
117-
typedef std::map<STORAGE, int, typename Rcpp::traits::comparator_type<RTYPE>::type > SORTED_MAP ;
117+
typedef std::map<STORAGE, int, MapCompare<STORAGE> > SORTED_MAP ;
118118

119119
SORTED_MAP map ;
120120

0 commit comments

Comments
 (0)