From 46ed051740803bb2a81c1d5cdc79a19d8512dd25 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Fri, 5 Jun 2020 23:15:19 +0900 Subject: [PATCH] fix: pass path.string as a filename --- toml/parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/parser.hpp b/toml/parser.hpp index 62900ee..b2e4755 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -2113,7 +2113,7 @@ basic_value parse(const std::filesystem::path& fpath) throw std::runtime_error("toml::parse: file open error -> " + fpath.string()); } - return parse(ifs, fname); + return parse(ifs, fpath.string()); } #endif // TOML11_HAS_STD_FILESYSTEM