diff --git a/include/oneapi/dpl/pstl/utils_ranges.h b/include/oneapi/dpl/pstl/utils_ranges.h index 8676f039b0..e1adbdc269 100644 --- a/include/oneapi/dpl/pstl/utils_ranges.h +++ b/include/oneapi/dpl/pstl/utils_ranges.h @@ -16,8 +16,16 @@ #ifndef _ONEDPL_UTILS_RANGES_H #define _ONEDPL_UTILS_RANGES_H -#include -#include +#include // std::get +#include // std::uint8_t +#include // std::size_t, std::ptrdiff_t +#include // std::declval +#include // std::iterator_traits +#include // std::decay_t, std::remove_cv_t, std::remove_reference_t, std::invoke_result_t, ... + +#if _ONEDPL_CPP20_RANGES_PRESENT +# include // std::ranges::sized_range, std::ranges::range_size_t +#endif #include "iterator_defs.h" #include "iterator_impl.h"