From bb073b6bb33a1d800fb34579e4119575c67fc5fe Mon Sep 17 00:00:00 2001 From: David Given Date: Tue, 25 Jul 2023 23:23:04 +0200 Subject: [PATCH] Apparently Mingw can't automatically convert from path to string. --- lib/fluxsource/kryoflux.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fluxsource/kryoflux.cc b/lib/fluxsource/kryoflux.cc index 2bb18d81..c8217c3d 100644 --- a/lib/fluxsource/kryoflux.cc +++ b/lib/fluxsource/kryoflux.cc @@ -37,7 +37,7 @@ std::unique_ptr readStream( std::filesystem::path filename; for (auto const& de : std::filesystem::directory_iterator{path}) { - if (has_suffix(de.path(), suffix)) + if (has_suffix(de.path().native(), suffix)) { if (!filename.empty()) error("data is ambiguous --- multiple files end in {}", suffix); @@ -49,9 +49,9 @@ std::unique_ptr readStream( error("failed to find track {} side {} in {}", track, side, - (std::string)path); + path.native()); - return readStream(filename); + return readStream(filename.native()); } std::unique_ptr readStream(const std::string& filename)