Skip to content

Commit f0bc162

Browse files
committed
Add default comparison operators to compute_end_from_size and no_explicit_size
1 parent d755c8b commit f0bc162

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/containers/range_view.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ struct compute_end_from_size {
3434
constexpr compute_end_from_size() = default;
3535
constexpr compute_end_from_size(auto const &) {
3636
}
37+
friend auto operator<=>(compute_end_from_size, compute_end_from_size) = default;
3738
};
3839

3940
template<typename T>
@@ -46,6 +47,7 @@ struct no_explicit_size {
4647
constexpr no_explicit_size() = default;
4748
constexpr no_explicit_size(auto const &) {
4849
}
50+
friend auto operator<=>(no_explicit_size, no_explicit_size) = default;
4951
};
5052

5153
template<typename T>

0 commit comments

Comments
 (0)