diff --git a/toml/parser.hpp b/toml/parser.hpp index 62be405..7636f14 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -2134,7 +2134,7 @@ result parse_toml_file(location& loc) table_type data; // root object is also a table, but without [tablename] - if(auto tab = parse_ml_table(loc)) + if(const auto tab = parse_ml_table(loc)) { data = std::move(tab.unwrap()); }