Skip to content

Commit 0ee4a95

Browse files
committed
Try adding a deduction guide
1 parent 686c5e5 commit 0ee4a95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,9 @@ class __future : private std::tuple<_Args...>
826826
return __future<_Event, _T, _Args...>(__my_event, new_tuple);
827827
}
828828
};
829+
// Deduction guide for __future
830+
template<typename Event, typename... _UArgs>
831+
__future(_Event, _UArgs&&...) -> __future<_Event, std::remove_cv_t<std::remove_reference_t<_UArgs>>...>;
829832

830833
// Invoke a callable and pass a compile-time integer based on a provided run-time integer.
831834
// The compile-time integer that will be provided to the callable is defined as the smallest

0 commit comments

Comments
 (0)