@@ -95,25 +95,6 @@ struct order_by_status {
95
95
};
96
96
97
97
98
- struct order_by_priority {
99
- explicit order_by_priority (lwg::section_map §ions)
100
- : section_db(sections)
101
- {
102
- }
103
-
104
- auto operator ()(lwg::issue const & x, lwg::issue const & y) const -> bool {
105
- assert (!x.tags .empty ());
106
- assert (!y.tags .empty ());
107
- auto tie = [this ](auto & i) {
108
- return std::tie (i.priority , section_db[i.tags .front ()], i.num );
109
- };
110
- return tie (x) < tie (y);
111
- }
112
-
113
- private:
114
- lwg::section_map& section_db;
115
- };
116
-
117
98
// Replace spaces to make a string usable as an 'id' attribute,
118
99
// or as an URL fragment (#foo) that links to an 'id' attribute.
119
100
inline std::string spaces_to_underscores (std::string s) {
@@ -673,7 +654,10 @@ R"(<h1>C++ Standard Library Issues List (Revision )" << lwg_issues_xml.get_revis
673
654
674
655
675
656
void report_generator::make_sort_by_priority (std::vector<issue>& issues, fs::path const & filename) {
676
- sort (issues.begin (), issues.end (), order_by_priority{section_db});
657
+ auto proj = [this ](const auto & i) {
658
+ return std::tie (i.priority , section_db[i.tags .front ()], i.num );
659
+ };
660
+ std::ranges::sort (issues, {}, proj);
677
661
678
662
std::ofstream out{filename};
679
663
if (!out)
0 commit comments