#ifndef _header1_h #define _header1_h class Base1 { int i; friend class boost::serialization::access; template void serialize (Archive &ar, const unsigned int ) { ar & BOOST_SERIALIZATION_NVP(i); } }; namespace derived1 { class Derived1 : public ::Base1 { friend class boost::serialization::access; template void serialize (Archive &ar, const unsigned int ) { ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base1); } }; } #endif