diff --git a/include/toml/toml.h b/include/toml/toml.h index 6b0c6e0..5a18e58 100644 --- a/include/toml/toml.h +++ b/include/toml/toml.h @@ -387,7 +387,7 @@ inline ParseResult parse(std::istream& is) if (v.valid()) return ParseResult(std::move(v), std::string()); - return ParseResult(std::move(v), std::move(parser.errorReason())); + return ParseResult(std::move(v), parser.errorReason()); } inline ParseResult parseFile(const std::string& filename)