diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-31 11:13:37 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-31 11:13:37 +0200 |
| commit | 63844b7567a32e27f739755d1e2a232c721e34e5 (patch) | |
| tree | afdfaa1f6f0f19c84006dd3962c7ec692ca8d399 | |
| parent | e772e7e130959aa1a8ad8e163811e3070bfbb076 (diff) | |
feat: `allocator_system`: be more explicit on `var_type` forwarding.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | dev/lib/core/allocator_system.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/lib/core/allocator_system.hpp b/dev/lib/core/allocator_system.hpp index c75971b..6b7e5db 100644 --- a/dev/lib/core/allocator_system.hpp +++ b/dev/lib/core/allocator_system.hpp @@ -59,7 +59,7 @@ namespace ocl template <typename ret_type, typename... var_type> auto construct(var_type&&... args) -> std::shared_ptr<ret_type> { - return std::shared_ptr<ret_type>(allocator_new(ret_type{std::forward(args...)}), del_()); + return std::shared_ptr<ret_type>(allocator_new(ret_type{std::forward<var_type...>(args...)}), del_()); } template <typename ret_type> |
