CnC
Serialization of std::shared_ptr
Marshalling pointer types (e.g. items which are pointers)

std::shared_ptr are normally supported out-of-the-box (given the underlying type is serializable (similar to Marshalling pointer types (e.g. items which are pointers)).

Only shared_ptrs to more complex pointer-types require special treatment to guarantee correct garbage collection. If

then (and only then) you might want to use construct_array and destruct_array. It is probably most convenient to

This mechanism is used in the cholesky example which comes with this distribution.

Alternatively you can use matching allocation/deallocation explicitly in your con/destructors and during serialization.

 All Classes Namespaces Functions Variables Typedefs Enumerator Friends