summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/smart_ptr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ocl/smart_ptr.hpp')
-rw-r--r--include/ocl/smart_ptr.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/ocl/smart_ptr.hpp b/include/ocl/smart_ptr.hpp
index 23671f1..489f277 100644
--- a/include/ocl/smart_ptr.hpp
+++ b/include/ocl/smart_ptr.hpp
@@ -21,9 +21,12 @@ namespace ocl
template <class T>
using shared_ptr = std::shared_ptr<T>;
- /// @brief Constructs a `delete_ptr`, that is, a pointer that isn't deleted from the heap.
- template<class T>
- inline auto delete_ptr(T* object) -> auto { return shared_ptr<T>{ object, boost::null_deleter{}}; }
-}
+ /// @brief Constructs a `delete_ptr`, that is, a pointer that isn't deleted from the heap.
+ template <class T>
+ inline auto delete_ptr(T* object) -> auto
+ {
+ return shared_ptr<T>{object, boost::null_deleter{}};
+ }
+} // namespace ocl
#endif // ifndef __OCL_SMART_PTR \ No newline at end of file