Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with Serialization: invalid signature
From: Igor R (boost.lists_at_[hidden])
Date: 2013-04-04 08:11:19


> deSerialize(Packet p1, Packet p2){ // Version 1 using stringstreams

<...>
> boost::archive::text_oarchive oa(serialized[0]);
> oa << p1;
<...>
> //deserialize
> CCNDataPkt newPacket;
<...>
> ia >> newPacket; // throws boost::archive::archive_exception: invalid signature.

It looks like you serialize one type and deserialize another one, don't you?


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