Serialize CECD, CFG services

This commit is contained in:
Hamish Milne 2020-01-02 00:45:58 +00:00 committed by zhupengfei
parent ef2e503281
commit 2d2c7218ef
23 changed files with 135 additions and 16 deletions

View file

@ -260,6 +260,13 @@ private:
*/
std::unordered_map<ArchiveHandle, std::unique_ptr<ArchiveBackend>> handle_map;
ArchiveHandle next_handle = 1;
template <class Archive>
void serialize(Archive& ar, const unsigned int) {
ar& id_code_map;
ar& handle_map;
ar& next_handle;
}
};
} // namespace Service::FS