mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
fix: allow empty input file (to be an empty table)
This commit is contained in:
@@ -1421,7 +1421,7 @@ result<table, std::string> parse_toml_file(location<Container>& loc)
|
||||
const auto first = loc.iter();
|
||||
if(first == loc.end())
|
||||
{
|
||||
return err(std::string("toml::detail::parse_toml_file: input is empty"));
|
||||
return ok(toml::table{});
|
||||
}
|
||||
|
||||
table data;
|
||||
|
Reference in New Issue
Block a user