53template <
class T> T
unpack(std::string
const &state) {
54 namespace iostreams = boost::iostreams;
56 iostreams::array_source src(state.data(), state.size());
57 iostreams::stream<iostreams::array_source> ss(src);
60 boost::archive::binary_iarchive(ss) >> val;