我需要序列化目录树。 我有这种类型的无故障:boost.serialization和延迟初始化
std::map<
std::string, // string(path name)
std::vector<std::string> // string array(file names in the path)
> tree;
但对于系列化与内容的目录树,我需要其他类型的:
std::map<
std::string, // string(path name)
std::vector< // files array
std::pair<
std::string, // file name
std::vector< // array of file pieces
std::pair< // <<<<<<<<<<<<<<<<<<<<<< for this i need lazy initialization
std::string, // piece buf
boost::uint32_t // crc32 summ on piece
>
>
>
>
> tree;
我怎么能初始化类型的对象“STD ::对“在序列化的时刻? 即读取文件块/计算crc32总和。
了