Skip to content

Commit

Permalink
[oneDPL][ranges] + fix for __stable_sort_fn and __sort_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Oct 23, 2024
1 parent 316b923 commit 5dec760
Showing 1 changed file with 2 additions and 2 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 @@ -427,7 +427,7 @@ struct __stable_sort_fn
return oneapi::dpl::__internal::__ranges::__pattern_sort_ranges(__dispatch_tag,
std::forward<_ExecutionPolicy>(__exec), std::forward<_R>(__r), __comp, __proj,
#if _ONEDPL_STD_RANGES_ALGO_CPP_FUN
[](auto&&... __args) { std::ranges::stable_sort(std::forward<decltype(__args)>(__args)...); }
[](auto&&... __args) { return std::ranges::stable_sort(std::forward<decltype(__args)>(__args)...); }
#else
std::ranges::stable_sort
#endif
Expand All @@ -453,7 +453,7 @@ struct __sort_fn
return oneapi::dpl::__internal::__ranges::__pattern_sort_ranges(__dispatch_tag,
std::forward<_ExecutionPolicy>(__exec), std::forward<_R>(__r), __comp, __proj,
#if _ONEDPL_STD_RANGES_ALGO_CPP_FUN
[](auto&&... __args) { std::ranges::sort(std::forward<decltype(__args)>(__args)...); }
[](auto&&... __args) { return std::ranges::sort(std::forward<decltype(__args)>(__args)...); }
#else
std::ranges::sort
#endif
Expand Down

0 comments on commit 5dec760

Please sign in to comment.