Skip to content

Commit

Permalink
[oneDPL][ranges] + fix a minor error in a signature
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed May 22, 2024
1 parent 4baf3c6 commit 3c2713b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/oneapi/dpl/pstl/glue_algorithm_ranges_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,9 @@ replace_copy(_ExecutionPolicy&& __exec, _Range1&& __rng, _Range2&& __result, con

// [alg.sort]

template <typename _ExecutionPolicy, typename _Range, typename _Compare, typename _Proj = std::identity>
template <typename _ExecutionPolicy, typename _Range, typename _Compare, typename _Proj>
oneapi::dpl::__internal::__enable_if_execution_policy<_ExecutionPolicy>
sort(_ExecutionPolicy&& __exec, _Range&& __rng, _Compare __comp, _Proj __proj = {})
sort(_ExecutionPolicy&& __exec, _Range&& __rng, _Compare __comp, _Proj __proj)
{
const auto __dispatch_tag = oneapi::dpl::__ranges::__select_backend(__exec, __rng);

Expand Down
2 changes: 1 addition & 1 deletion include/oneapi/dpl/pstl/onedpl_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
#define _ONEDPL_CPP20_SHIFT_LEFT_RIGHT_PRESENT \
(_ONEDPL___cplusplus >= 202002L && (_MSC_VER >= 1921 || _GLIBCXX_RELEASE >= 10))
#define _ONEDPL_CPP20_RANGES_PRESENT (__cplusplus >= 202002L || _MSVC_LANG >= 202002L) && __cpp_lib_ranges >= 201911L
#define _ONEDPL_CPP20_RANGES_PRESENT ((__cplusplus >= 202002L || _MSVC_LANG >= 202002L) && __cpp_lib_ranges >= 201911L)
#if _ONEDPL_STD_FEATURE_MACROS_PRESENT
# define _ONEDPL_CPP20_CONCEPTS_PRESENT (__cpp_concepts >= 201907L && __cpp_lib_concepts >= 202002L)
Expand Down

0 comments on commit 3c2713b

Please sign in to comment.