On Sat, Jan 20, 2018 at 10:12 PM, Robert Ramey via Boost-users <boost-users@lists.boost.org> wrote:
On 1/19/18 11:52 PM, dinesh kumar via Boost-users wrote:
Hi All,

Greetings for the day.

I am trying to understand the behavior of Boost's binary serializer(Boost version 1.65). Please consider the below example, where I am inserting one record into the file, and trying to read the same record 5 times.


It would not occur to me to use the serialization library in this case. The serialization library saves/restores a whole data structure of arbitrary complexity.  It does it with one call.  It doesn't really support "picking apart" the saved file.  It's not a file protocol - it's much, much more than that.  If you intervene in the process, you'll likely be surprised at what you get.

Agreed. I was making my hands dirty with serialization and thought I found a serious problem with the library, hence reported to the community.
But, I am not using the serialization to re-read the same content as it was a just experiment which was exploded in my machine, while doing the same.

--Dinesh

Robert Ramey

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users



--