Skip to content

Commit 436ae2e

Browse files
authored
[libc++] Make sure compare handle boolean-testable correctly
1 parent e0f56c0 commit 436ae2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__flat_map/flat_multimap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ class flat_multimap {
777777
auto __zv = ranges::views::zip(__containers_.keys, __containers_.values);
778778
auto __append_start_offset = __containers_.keys.size() - __num_appended;
779779
auto __end = __zv.end();
780-
auto __compare_key = [this](const auto& __p1, const auto& __p2) {
780+
auto __compare_key = [this](const auto& __p1, const auto& __p2) -> bool {
781781
return __compare_(std::get<0>(__p1), std::get<0>(__p2));
782782
};
783783
if constexpr (!_WasSorted) {

0 commit comments

Comments
 (0)