
Hi, all
I'm trying to use boost library for serialization of my program which contains many custom class definitions.
However, I can't figure out how to handle a class member which is *pointer to pointers* such as 'a' from the following code snippet.
class B {
A** a;
friend class boost::serialization::access;
…
template<class Archive>
void serialize(Archive &ar, const unsigned int version) {
ar & a:
….
Above code fails to be compiled with the following error message.
…
/usr/include/boost/archive/detail/oserializer.hpp:148:5: instantiated from ‘void boost::archive::detail::oserializer