std::bad_alloc on boost::archive::binary_iarchive ia>>
std::stringstream os(std::ios_base::binary | std::ios_base::out | std::ios_base::in);
boost::archive::binary_iarchive ia(os, boost::archive::no_header);
os << in.rdbuf();
in.close();
ia >> 类对象;
os.clear();
boost 序列化过程中,结构体中不能出现string等不定长的基础类型,不然在反序列化的过程中,无法正常恢复数据,报bad_alloc错误;