File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,12 @@ struct join_with_view<_View, _Pattern>::__sentinel {
404404
405405 _LIBCPP_HIDE_FROM_ABI constexpr explicit __sentinel (_Parent& __parent) : __end_(ranges::end(__parent.__base_)) {}
406406
407+ template <bool _OtherConst>
408+ requires sentinel_for<sentinel_t <_Base>, iterator_t <__maybe_const<_OtherConst, _View>>>
409+ [[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI constexpr bool __equal_to (const __iterator<_OtherConst>& __x) const {
410+ return __x.__get_outer () == __end_;
411+ }
412+
407413public:
408414 _LIBCPP_HIDE_FROM_ABI __sentinel () = default;
409415
@@ -415,7 +421,7 @@ struct join_with_view<_View, _Pattern>::__sentinel {
415421 requires sentinel_for<sentinel_t <_Base>, iterator_t <__maybe_const<_OtherConst, _View>>>
416422 [[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI friend constexpr bool
417423 operator ==(const __iterator<_OtherConst>& __x, const __sentinel& __y) {
418- return __x. __get_outer () == __y. __end_ ;
424+ return __y. __equal_to (__x) ;
419425 }
420426};
421427
You can’t perform that action at this time.
0 commit comments