mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
fix: pass path.string as a filename
This commit is contained in:
@@ -2113,7 +2113,7 @@ basic_value<Comment, Table, Array> parse(const std::filesystem::path& fpath)
|
||||
throw std::runtime_error("toml::parse: file open error -> " +
|
||||
fpath.string());
|
||||
}
|
||||
return parse<Comment, Table, Array>(ifs, fname);
|
||||
return parse<Comment, Table, Array>(ifs, fpath.string());
|
||||
}
|
||||
#endif // TOML11_HAS_STD_FILESYSTEM
|
||||
|
||||
|
Reference in New Issue
Block a user