Skip to content

Commit

Permalink
Fix review comment: using instead typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed May 22, 2024
1 parent d0039b6 commit 3a4c07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/oneapi/dpl/pstl/algorithm_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@ __pattern_sort(__parallel_tag<_IsVector>, _ExecutionPolicy&& __exec, _RandomAcce
{
using __backend_tag = typename __parallel_tag<_IsVector>::__backend_tag;

typedef typename std::iterator_traits<_RandomAccessIterator>::value_type _ValueType;
using _ValueType = typedef typename std::iterator_traits<_RandomAccessIterator>::value_type;
static_assert(std::is_move_constructible_v<_ValueType>);

__internal::__except_handler([&]() {
Expand Down
2 changes: 1 addition & 1 deletion include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ __pattern_partial_sort_copy(__hetero_tag<_BackendTag> __tag, _ExecutionPolicy&&
// runtime makes a dependency graph. In that case the call of __pattern_walk2 could be changed to
// be asynchronous for better performance.

typedef typename std::iterator_traits<_OutIterator>::value_type _ValueType;
using _ValueType = typename std::iterator_traits<_OutIterator>::value_type;
static_assert(std::is_move_constructible_v<_ValueType>);

// Use regular sort as partial_sort isn't required to be stable.
Expand Down

0 comments on commit 3a4c07b

Please sign in to comment.