C++ 如何在堆上反序列化和创建对象?
当对象包含时,如何使用boost c++11序列化/反序列化对象C++ 如何在堆上反序列化和创建对象?,c++,c++11,boost,C++,C++11,Boost,当对象包含时,如何使用boost c++11序列化/反序列化对象 vector<map<u_int64_t, Student*>*>* students; 比如: 其中类Student具有序列化方法,如 template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & name; // .... } 如何反序列化
vector<map<u_int64_t, Student*>*>* students;
比如:
其中类Student具有序列化方法,如
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & name;
// ....
}
如何反序列化和创建堆上的所有内容?这看起来像是使用了库。我在这里看不到更具体的问题
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & name;
// ....
}