|
Boost Users : |
From: Gennady Khokhorin (gok_at_[hidden])
Date: 2007-04-17 22:17:22
I have vector<double> timeStamps;
How to store this vector to outside binary file in boost style?
I'm trying to utilyze mapped file:
std::vector<double> timeStamps;
std::string filePath("c:\\double_test.bin");
boost::intmax_t thisFileSize(maxSize); // max good value: 0x2FFFFFFF
ios::filtering_ostream out;
ios::file_sink fsink(filePath);
out.push(fsink);
//out.write(time_stamps.begin(), thisFileSize); //
out.flush();
fsink.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