From 19f0df819b897875c459f44484eaba5e204e06cd Mon Sep 17 00:00:00 2001 From: MikeDvorskiy Date: Fri, 27 Dec 2024 16:18:18 +0100 Subject: [PATCH] ++ --- .../oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h index 85f9c02b57..e53d2938e3 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h @@ -189,7 +189,8 @@ struct __parallel_merge_submitter<_IdType, __internal::__optional_kernel_name<_N const _IdType __steps = oneapi::dpl::__internal::__dpl_ceiling_div(__n, __chunk); using __res_idx_t = std::pair; - auto __p_res_storage = new __result_and_scratch_storage<_ExecutionPolicy, __res_idx_t>(__exec, 1, 0); + using __result_and_scratch_storage_t = __result_and_scratch_storage<_ExecutionPolicy, __res_idx_t>; + auto __p_res_storage = new __result_and_scratch_storage_t(__exec, 1, 0); // Save the raw pointer into a shared_ptr to return it in __future and extend the lifetime of the storage. std::shared_ptr<__result_and_scratch_storage_base> __p_result_base(__p_res_storage);