diff --git a/include/oneapi/dpl/pstl/zip_view_impl.h b/include/oneapi/dpl/pstl/zip_view_impl.h index 8df66df08fc..dcdce7421b2 100644 --- a/include/oneapi/dpl/pstl/zip_view_impl.h +++ b/include/oneapi/dpl/pstl/zip_view_impl.h @@ -225,7 +225,7 @@ class zip_view : public std::ranges::view_interface> { } template - constexpr bool compare_with_sentinels(const SentinelsTuple& sentinels, std::index_sequence) { + constexpr bool compare_with_sentinels(const SentinelsTuple& sentinels, std::index_sequence) const { return ( (std::get(current_) == std::get(sentinels)) || ... ); }