Boost logo

Boost Users :

Subject: Re: [Boost-users] boost ASIO/serialisation with different boostversion. Bug or feature ?
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-01-07 13:15:57


Avi Bahra wrote:
> Currently I have built a client/server that uses ASIO with boost
> serialization. I built one set with boost 1.45 and another with boost
> 1.47
>
> However:
>
> o start boost 1.45 server
> o ping using 1.47 client
>
> I get a boost::archive::archive_exception unsupported version
>
> o start boost 1.47 server
> o ping with boost 1.45 client
>
> Again I get a boost::archive::archive_exception unsupported version
>
> Given that there was no change in format of the ping, is this bug or
> feature ? Is there any way of disabling this feature of the archive ,
> so exception
> is only thrown when there is format change?
>
> Any help appreciated.
>
> Ta,
> Avi

You might not have changed the format of your data types. But your data
types are built upon more primitive built-in ones. There is no guarentee
that an archive created in a subsequent version will be readable by a
previous version of the library.

Robert Ramey


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