mlpack
|
The objective of this class is to create a wrapper for raw pointer by encapsulating them in a smart pointer of type unique_ptr. More...
#include <pointer_wrapper.hpp>
The objective of this class is to create a wrapper for raw pointer by encapsulating them in a smart pointer of type unique_ptr.
Cereal does not support the serialization of raw pointer out of the box. Therefore, we have created this wrapper to serialize raw pointer in cereal as a smart pointer since because it will be difficult to change all pointer type in mlpack.