Skip to content

Commit 1a2643e

Browse files
assertion
1 parent 8004337 commit 1a2643e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__ranges/concat_view.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,8 @@ class concat_view<_Views...>::__iterator : public __concat_view_iterator_categor
579579
_LIBCPP_HIDE_FROM_ABI friend constexpr __iterator operator-(const __iterator& __it, difference_type __n)
580580
requires __concat_is_random_access<_Const, _Views...>
581581
{
582-
_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(!__x.__it_.valueless_by_exception() && !__y.__it_.valueless_by_exception(),
583-
"Trying to compare a valueless iterator of concat_view.");
582+
_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(
583+
!__it.__it_.valueless_by_exception(), "Trying to subtract a valuess iterators of concat_view.");
584584
auto __temp = __it;
585585
__temp -= __n;
586586
return __temp;

0 commit comments

Comments
 (0)