File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import containers.is_container;
1818import containers.iterator;
1919import containers.linear_size;
2020import containers.range_value_t ;
21+ import containers.sentinel_t ;
2122
2223import bounded;
2324import std_module;
@@ -58,7 +59,9 @@ constexpr auto test_sequence_container_default_constructed_empty() -> bool {
5859 BOUNDED_ASSERT (containers::begin (default_constructed) == containers::begin (default_constructed));
5960 BOUNDED_ASSERT (containers::begin (default_constructed) == containers::end (default_constructed));
6061 BOUNDED_ASSERT (containers::end (default_constructed) == containers::begin (default_constructed));
61- BOUNDED_ASSERT (containers::end (default_constructed) == containers::end (default_constructed));
62+ if constexpr (bounded::equality_comparable<containers::sentinel_t <Container>>) {
63+ BOUNDED_ASSERT (containers::end (default_constructed) == containers::end (default_constructed));
64+ }
6265 BOUNDED_ASSERT (containers::linear_size (default_constructed) == 0_bi);
6366 BOUNDED_ASSERT (default_constructed == default_constructed);
6467 BOUNDED_ASSERT (default_constructed == Container ());
You can’t perform that action at this time.
0 commit comments