Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/hetero/dpcpp/execution_sycl_defs.h - using st…
Browse files Browse the repository at this point in the history
…d::enable_if_t instead of typename ::std::enable_if<...>::type
  • Loading branch information
SergeyKopienko committed Oct 24, 2023
1 parent 26a1df1 commit 3335f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/oneapi/dpl/pstl/hetero/dpcpp/execution_sycl_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ struct __device_backend
};

template <class... _IteratorTypes, typename _KernelName>
typename ::std::enable_if<__is_random_access_iterator_v<_IteratorTypes...>, __hetero_tag<__device_backend>>::type
::std::enable_if_t<__is_random_access_iterator_v<_IteratorTypes...>, __hetero_tag<__device_backend>>
__select_backend(const execution::device_policy<_KernelName>&, _IteratorTypes&&...)
{
return {};
Expand All @@ -336,7 +336,7 @@ struct __fpga_backend : __device_backend
};

template <class... _IteratorTypes, unsigned int _Factor, typename _KernelName>
typename ::std::enable_if<__is_random_access_iterator_v<_IteratorTypes...>, __hetero_tag<__fpga_backend>>::type
::std::enable_if_t<__is_random_access_iterator_v<_IteratorTypes...>, __hetero_tag<__fpga_backend>>
__select_backend(const execution::fpga_policy<_Factor, _KernelName>&, _IteratorTypes&&...)
{
return {};
Expand Down

0 comments on commit 3335f24

Please sign in to comment.