Skip to content

Commit 3e969cd

Browse files
author
Pavel V Chupin
committed
[SYCL] Silence -Wctad-maybe-unsupported for check-sycl
Add deduction guide to kernel_bundle
1 parent afbc092 commit 3e969cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/include/sycl/kernel_bundle.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ class kernel_bundle : public detail::kernel_bundle_plain {
341341
return ReturnValue;
342342
}
343343
};
344+
#if __cplusplus >= 201703L
345+
template <bundle_state State> kernel_bundle(kernel_bundle<State> &&) -> kernel_bundle<State>;
346+
#endif
344347

345348
/////////////////////////
346349
// get_kernel_id API

0 commit comments

Comments
 (0)