Skip to content
Snippets Groups Projects
Commit 91f84bef authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Explicit bfs:path conversion to string.

For #25.
parent 9f94d90d
No related branches found
No related tags found
1 merge request!29FIX: Explicit bfs:path conversion to string.
......@@ -59,7 +59,7 @@ FileReader::FileReader(boost::filesystem::path filename)
}
void FileReader::openFile() {
stream_.open(filename_, std::ios::binary | std::ios::ate);
stream_.open(filename_.generic_string(), std::ios::binary | std::ios::ate);
if (!stream_) {
throw FileIOError("Can't open file for reading: " + filename_.string());
}
......
......@@ -58,7 +58,7 @@ FileWriter::FileWriter(boost::filesystem::path filename) : filename_(std::move(f
}
void FileWriter::openFile() {
stream_.open(filename_, std::ios::binary | std::ios::trunc);
stream_.open(filename_.generic_string(), std::ios::binary | std::ios::trunc);
if (!stream_) {
throw FileIOError("Can't open file for writing: " + filename_.string());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment