From 9dc71a87717cf4cbd0b30b1e2ff3555b016aea6a Mon Sep 17 00:00:00 2001 From: bialger Date: Wed, 14 Aug 2024 17:30:06 +0300 Subject: [PATCH] Fixed Windows path output --- lib/bmp_writer/bmp_writer.cpp | 3 ++- lib/field/tsv_handler.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/bmp_writer/bmp_writer.cpp b/lib/bmp_writer/bmp_writer.cpp index afc2799..9c68185 100644 --- a/lib/bmp_writer/bmp_writer.cpp +++ b/lib/bmp_writer/bmp_writer.cpp @@ -3,6 +3,7 @@ #include #include +#include BmpWriter::BmpWriter() { width_ = 0; @@ -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; } diff --git a/lib/field/tsv_handler.cpp b/lib/field/tsv_handler.cpp index 6941b92..c0f6af1 100644 --- a/lib/field/tsv_handler.cpp +++ b/lib/field/tsv_handler.cpp @@ -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; }