我需要序列化目錄樹。 我有這種類型的無故障: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總和。
了