21 Sep
2010
21 Sep
'10
5:44 p.m.
Germán Diago wrote:
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.
Where did the serialized data come from? Binary archives aren't portable...