File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sycl/doc/extensions/experimental Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -383,11 +383,11 @@ namespace sycl::ext::oneapi::experimental {
383
383
template <typename Function, typename Properties = empty_properties_t>
384
384
struct kernel_function {
385
385
386
- kernel_function(Function f, Properties p = syclx::properties{});
386
+ kernel_function(Function && f, Properties p = syclx::properties{});
387
387
388
388
// Available only if Function is invocable with Args
389
389
template <typename... Args>
390
- void operator()(Args... args) const;
390
+ void operator()(Args&& ... args) const;
391
391
392
392
// Available only if Properties contains no run-time properties
393
393
static constexpr auto get(syclx::properties_tag) const;
@@ -402,7 +402,7 @@ struct kernel_function {
402
402
403
403
```c++
404
404
template <typename... Args>
405
- void operator()(Args... args) const;
405
+ void operator()(Args&& ... args) const;
406
406
```
407
407
408
408
_Constraints_: `Function` is invocable with `Args`.
You can’t perform that action at this time.
0 commit comments