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-05 11:13:22


Nicholas Mario Wardhana wrote:
> int main()
>
> //std::ofstream filename1("binary_serialization.txt"); // error - open
> in binary mode
      std::ofstream filename1("binary_serialization.txt", std::ios::binary);
> boost::archive::binary_oarchive binary_oa(filename1);
> binary_oa & g;
> filename1.close();
> }


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