|
Boost Users : |
Subject: [Boost-users] Problem with boost archive. Cannot solve in any way.
From: Germán Diago (germandiago_at_[hidden])
Date: 2010-09-21 13:10:38
Hello. I have this code, which throws an exception and I cannot find
in any way why. It throws an
invalid_signature exception. I'm sure that the serialized data where
it comes this
data from is correct. The code:
std::string data_bytes(std::get<1>(*datos).begin(), std::get<1>(*datos).end());
std::istringstream stream(data_bytes);
MensajeRed msg;
//FIXME: This constructor throws
boost::archive::binary_iarchive archive(stream);
archive >> msg;
Throws in the constructor of boost::binary_iarchive. Thanks in advance.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net