diff options
Diffstat (limited to 'include/ocl/allocator_op.hpp')
| -rw-r--r-- | include/ocl/allocator_op.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/ocl/allocator_op.hpp b/include/ocl/allocator_op.hpp index ed6ae90..dcdbdaa 100644 --- a/include/ocl/allocator_op.hpp +++ b/include/ocl/allocator_op.hpp @@ -64,12 +64,11 @@ namespace ocl return std::shared_ptr<ret_type>(allocator_new{}.template var_alloc<var_type...>(std::forward<var_type...>(args)...), allocator_delete{}); } - template<size_t N> + template <size_t N> auto construct_array() { return std::shared_ptr<ret_type>(allocator_new{}.template array_alloc<N>(), allocator_delete{}); } - }; template <typename type> |
