Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL][Serialization] Reading a graph from a binary file: "vector subscript out of range error" and portability
From: Robert Ramey (ramey_at_[hidden])
Date: 2013-02-06 11:21:56


Nicholas Mario Wardhana wrote:

> As for the portability, I found that there are a few affecting
> factors, e.g. different variable sizes and processor architectures
> [1]. However, I just generated the files on an another computer with
> similar system, and the files are exactly the same as what I
> previously generated on my computer. The other computer can read the
> file properly. As I don't target too different architectures, I think
> I am going to check myself to what extend the binary format is
> portable.

Just want to re-iterate that binary archives will generally not be portable.
You might want to look at portable_binary_?archive

Robert Ramey

>
> Best regards,
> Nicholas Mario Wardhana
>
> References:
> [1] http://www.eskimo.com/~scs/cclass/int/sx3b.html


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