diff --git a/tests/test_literals.cpp b/tests/test_literals.cpp index f90f598..076ef57 100644 --- a/tests/test_literals.cpp +++ b/tests/test_literals.cpp @@ -45,6 +45,16 @@ BOOST_AUTO_TEST_CASE(test_file_as_literal) b = "baz" )"_toml; + BOOST_TEST(r == v); + } + { + const toml::value r{ + {"array_of_tables", toml::array{toml::table{}}} + }; + const toml::value v = u8R"( + [[array_of_tables]] + )"_toml; + BOOST_TEST(r == v); } } diff --git a/toml/parser.hpp b/toml/parser.hpp index 2917e6d..6519740 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -1751,6 +1751,7 @@ parse_ml_table(location& loc) using skip_line = repeat< sequence, maybe, lex_newline>, at_least<1>>; skip_line::invoke(loc); + lex_ws::invoke(loc); table_type tab; while(loc.iter() != loc.end())