Verified Commit 9e8e189b authored by Francois Keith's avatar Francois Keith Committed by Justin Carpentier
Browse files

[Win32] Correct error 'input stream error' thrown by binary_oarchive

parent 802f8e48
......@@ -215,7 +215,7 @@ namespace pinocchio
inline void loadFromBinary(T & object,
const std::string & filename)
std::ifstream ifs(filename.c_str());
std::ifstream ifs(filename.c_str(), std::ios::binary);
boost::archive::binary_iarchive ia(ifs);
......@@ -240,7 +240,7 @@ namespace pinocchio
void saveToBinary(const T & object,
const std::string & filename)
std::ofstream ofs(filename.c_str());
std::ofstream ofs(filename.c_str(), std::ios::binary);
boost::archive::binary_oarchive oa(ofs);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment