Skip to content
Snippets Groups Projects
Commit 07b4b0e0 authored by Patrik Huber's avatar Patrik Huber
Browse files

Fixed opening ifstream as binary when reading json

parent e24cd1af
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ struct ModelContour ...@@ -81,7 +81,7 @@ struct ModelContour
{ {
ModelContour contour; ModelContour contour;
std::ifstream file(filename, std::ios::binary); std::ifstream file(filename);
if (file.fail()) { if (file.fail()) {
throw std::runtime_error("Error opening given file: " + filename); throw std::runtime_error("Error opening given file: " + filename);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment