Skip to content

Commit c4a7735

Browse files
committed
fixup! Replace file_util.{h,cpp} by std::filesystem
1 parent 367f7d4 commit c4a7735

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/util/source_location.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ std::string source_locationt::as_string(bool print_cwd) const
3737
dest+=' ';
3838
dest+="file ";
3939
if(print_cwd)
40+
{
4041
dest+=
41-
std::filesystem::path(id2string(get_working_directory())).append(id2string(file));
42+
std::filesystem::path(id2string(get_working_directory())).append(id2string(file)).string();
43+
}
4244
else
4345
dest+=id2string(file);
4446
}
@@ -89,7 +91,7 @@ optionalt<std::string> source_locationt::full_path() const
8991
if(file.empty() || is_built_in(file))
9092
return {};
9193

92-
return std::filesystem::path(id2string(get_working_directory())).append(file);
94+
return std::filesystem::path(id2string(get_working_directory())).append(file).string();
9395
}
9496

9597
std::ostream &operator << (

0 commit comments

Comments
 (0)