Boost logo

Boost Users :

From: Zrubavel Zodikovich (g729_at_[hidden])
Date: 2005-08-04 13:43:23

The following code produces error saying that archive is included after
serialization. What is the correct place to include map.hpp and other
predefined implementations when making a class with container members
serializable ?

#include <boost/serialization/serialization.hpp>
#include <boost/serialization/map.hpp>

class A

  template<class Archive>
  void serialize(Archive & ar, const unsigned int version)
     ar & someMap;

  std::map<int, int> someMap;


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at