Hi Kangkook,
The following is the code snippet that wouldn't get compiled.#include <iostream>#include <fstream>#include <map>#include <string>#include <boost/archive/text_oarchive.hpp>#include <boost/archive/text_iarchive.hpp>#include <boost/serialization/map.hpp>#include <boost/serialization/set.hpp>#include <boost/serialization/string.hpp>using namespace std;class B {//private attributesmap<const string* , set<unsigned> > lines;//serializationfriend class boost::serialization::access;template<class Archive>void serialize (Archive & ar, const unsigned int version) {ar & lines;}public:B() {}};main (int argc, char* argv[]) {string fname(argv[1]);B b0;std::ofstream ofs (fname.c_str());boost::archive::text_oarchive oa(ofs);oa << b0;ofs.close();std::ifstream ifs(fname.c_str());boost::archive::text_iarchive ia(ifs);ia >> b0;ifs.close();return 0;}