Skip to content

Commit 6794415

Browse files
include/oneapi/dpl/internal/async_impl/glue_async_impl.h - fix issue: Brick __brick_copy specialized by _ExecutionPolicy without std::decay_t
#2110
1 parent e11ac89 commit 6794415

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/oneapi/dpl/internal/async_impl/glue_async_impl.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ auto
7777
copy_async(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
7878
_Events&&... __dependencies)
7979
{
80+
using _DecayedExecutionPolicy = std::decay_t<_ExecutionPolicy>;
81+
8082
auto __dispatch_tag = oneapi::dpl::__internal::__select_backend(__exec, __first, __result);
8183

8284
wait_for_all(::std::forward<_Events>(__dependencies)...);
8385
auto ret_val = oneapi::dpl::__internal::__pattern_walk2_brick_async(
8486
__dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec), __first, __last, __result,
85-
oneapi::dpl::__internal::__brick_copy<decltype(__dispatch_tag), _ExecutionPolicy>{});
87+
oneapi::dpl::__internal::__brick_copy<decltype(__dispatch_tag), _DecayedExecutionPolicy>{});
8688
return ret_val;
8789
}
8890

0 commit comments

Comments
 (0)