Skip to content

Commit

Permalink
Fixed Windows path output
Browse files Browse the repository at this point in the history
  • Loading branch information
bialger committed Aug 14, 2024
1 parent 53663d3 commit 9dc71a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/bmp_writer/bmp_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <cstring>
#include <filesystem>
#include <iostream>

BmpWriter::BmpWriter() {
width_ = 0;
Expand All @@ -24,7 +25,7 @@ void BmpWriter::ExportField(char* dirname, CoordinatesField& field,
file_.open(path, std::ios::out | std::ios::binary);

if (!file_.is_open()) {
std::cout << "Can't open file: " << path.native() << std::endl;
std::cout << "Can't open file: " << path.string() << std::endl;
return;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/field/tsv_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ bool TsvHandler::ExportTSV(char* dirname, CoordinatesField& field, int64_t numbe
std::ofstream file(path, std::ios::out);

if (!file.is_open()) {
std::cout << "Can't open file: " << path.native() << std::endl;
std::cout << "Can't open file: " << path.string() << std::endl;
return false;
}

Expand Down

0 comments on commit 9dc71a8

Please sign in to comment.