24,854
社区成员
发帖
与我相关
我的任务
分享
//反序列化mreq包
stringstream os(mreq_ch);
spfs_log(INFO,low,"ready to deserlization,context=%s.",os.str().c_str());
try
{
text_iarchive(os)>>req;//在这一行构造抛出异常
}
catch(const exception &e)
{
spfs_log(ERR,high,"text_iarchive err %s.",e.what());
}
stringstream os ;
text_oarchive(os)<<req;
size_t req_len=strlen(os.str().c_str());