https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109525

            Bug ID: 109525
           Summary: typo in views::as_const::operator()
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

ranges#L9027:

        else if constexpr (is_lvalue_reference_v<_Range>
                           && constant_range<_Tp>
                           && !view<_Tp>)
          return ref_view(static_cast<const _Tp&>(__r));


According to [range.as.const.overview-2.5], the second condition should be
constant_range<const _Tp>, I think?

Reply via email to