class workflow {
private:
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & tasks;
ar & ID;
}
vector<taskDescriptor> tasks;
int ID;
Run Code Online (Sandbox Code Playgroud)
如何使用boost库序列化成员"任务"?