File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -131,12 +131,20 @@ class not_before_queue_t {
131131
132132 template <typename U>
133133 bool operator ()(const U &lhs, const container_t &rhs) const {
134- return lhs < project_removal_class (rhs.v );
134+ if constexpr (std::is_integral_v<U>) {
135+ return std::cmp_less (lhs, project_removal_class (rhs.v ));
136+ } else {
137+ return lhs < project_removal_class (rhs.v );
138+ }
135139 }
136140
137141 template <typename U>
138142 bool operator ()(const container_t &lhs, const U &rhs) const {
139- return project_removal_class (lhs.v ) < rhs;
143+ if constexpr (std::is_integral_v<U>) {
144+ return std::cmp_less (project_removal_class (lhs.v ), rhs);
145+ } else {
146+ return project_removal_class (lhs.v ) < rhs;
147+ }
140148 }
141149 };
142150 struct removal_registry_disposer_t {
You can’t perform that action at this time.
0 commit comments