File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
iterators/const.iterators
ranges/range.adaptors/range.as.const Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ constexpr void test_basic_operations() {
112112 {
113113 std::same_as<decltype (first)> auto & it_ref = --first;
114114 assert (std::addressof (it_ref) == std::addressof (first));
115- assert (--first == It{arr + 0 });
115+ assert (it_ref == It{arr + 0 });
116116 }
117117 assert (first++ == It{arr + 0 });
118118 assert (first-- == It{arr + 1 });
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ static_assert(!IsImplicitlyConstructible<std::ranges::as_const_view<NonDefaultCo
4444
4545static_assert (std::is_constructible_v<std::ranges::as_const_view<DefaultConstructibleView>, DefaultConstructibleView>);
4646static_assert (
47- std::is_constructible_v<std::ranges::as_const_view<DefaultConstructibleView >, NonDefaultConstructibleView>);
47+ std::is_constructible_v<std::ranges::as_const_view<NonDefaultConstructibleView >, NonDefaultConstructibleView>);
4848static_assert (!std::is_convertible_v<DefaultConstructibleView, std::ranges::as_const_view<DefaultConstructibleView>>);
4949static_assert (
50- !std::is_convertible_v<DefaultConstructibleView , std::ranges::as_const_view<NonDefaultConstructibleView>>);
50+ !std::is_convertible_v<NonDefaultConstructibleView , std::ranges::as_const_view<NonDefaultConstructibleView>>);
5151
5252constexpr bool test () {
5353 std::ranges::as_const_view<DefaultConstructibleView> view = {};
You can’t perform that action at this time.
0 commit comments