Commit 97ab52a7 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

[Fix] Correct data-io test: a binary file was not opened using

ios::binary flag.
parent 7657caad
......@@ -256,13 +256,13 @@ int main(int argc, char** argv)
// Now use the binary output format.
std::ofstream out;, std::ofstream::binary);, std::ios::out | std::ios::binary);
save_data_as_binary(out, *sample2);
// This should automatically load using the binary format loader.
std::ifstream temp3;;, std::ios::in | std::ios::binary);
auto sample3 = plugins_manager::load_data("vertical_segment", temp3);
Markdown is supported
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