From c87aa0ceca04810350c0bf1dfcefad1286982e26 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 18 Dec 2025 12:56:45 +0100 Subject: chore: `smart_ptr.hpp` improvements. Signed-off-by: Amlal El Mahrouss --- include/ocl/smart_ptr.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/ocl/smart_ptr.hpp b/include/ocl/smart_ptr.hpp index 489f277..4bdff42 100644 --- a/include/ocl/smart_ptr.hpp +++ b/include/ocl/smart_ptr.hpp @@ -15,18 +15,18 @@ namespace ocl { - template > - using unique_ptr = std::unique_ptr; + template > + using unique_ptr = std::unique_ptr; - template - using shared_ptr = std::shared_ptr; + template + using shared_ptr = std::shared_ptr; /// @brief Constructs a `delete_ptr`, that is, a pointer that isn't deleted from the heap. - template - inline auto delete_ptr(T* object) -> auto + template + inline auto delete_ptr(Type* object) -> shared_ptr { - return shared_ptr{object, boost::null_deleter{}}; + return shared_ptr{object, boost::null_deleter{}}; } } // namespace ocl -#endif // ifndef __OCL_SMART_PTR \ No newline at end of file +#endif // ifndef __OCL_SMART_PTR -- cgit v1.2.3