From dfc625f38dc97215c0ddef1c53042d5caaed0b0b Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 10 Oct 2023 23:49:51 +0900 Subject: [PATCH] fix: #229 do not move temporary object --- toml/parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/parser.hpp b/toml/parser.hpp index 8cdd2ce..497d5a2 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -2582,7 +2582,7 @@ basic_value parse(const std::filesystem::path& fpath) "toml::parse: Error opening file \"" + fpath.string() + "\""); } ifs.exceptions(std::ifstream::failbit | std::ifstream::badbit); - return parse(ifs, std::move(fpath.string())); + return parse(ifs, fpath.string()); } #endif // TOML11_HAS_STD_FILESYSTEM