|
Boost Users : |
Subject: Re: [Boost-users] Problem with boost archive. Cannot solve in any way.
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2010-09-21 13:44:04
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...
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