The following still fails to compile:
-----
#include
There should be no need to include the first header in user code. In spite of its name, its really and implementation file. perhaps later well move it to a better place.
Robert Ramey
Zrubavel Zodikovich wrote:
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 ?
a.h ----- #include
#include class A { public:
template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & someMap; }
std::map
someMap; }; ----- Thanks