Thanks for pointing that out - actually, it was just an oversight. I first pasted the code (where the type is CCNDataPkt) and then thought it might of no interest what kind of packet the type is - and forgot to adapt it in the deserialization part.
In fact, types are the same - I'm sorry for the confusion!


On 04.04.2013 14:11, Igor R wrote:
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 mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users