We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aef777 commit 5ffd965Copy full SHA for 5ffd965
sycl/include/sycl/handler.hpp
@@ -2196,8 +2196,13 @@ class __SYCL_EXPORT handler {
2196
std::forward<RestT>(Rest)...);
2197
}
2198
2199
+ template <typename T>
2200
+ constexpr inline decltype(auto) forwarding_helper(T &&t) {
2201
+ return std::forward<T>(t);
2202
+ }
2203
+
2204
template <typename... RestT> auto property_deduction_helper(RestT &&...Rest) {
- const auto &KernelObj = (std::forward<RestT>(Rest), ...);
2205
+ const auto &KernelObj = (forwarding_helper(Rest), ...);
2206
if constexpr (ext::oneapi::experimental::detail::
2207
HasKernelPropertiesGetMethod<
2208
decltype(KernelObj)>::value) {
0 commit comments