diff --git a/include/toml11/parser.hpp b/include/toml11/parser.hpp index 3915650..5a8e939 100644 --- a/include/toml11/parser.hpp +++ b/include/toml11/parser.hpp @@ -3426,6 +3426,11 @@ parse_file(location& loc, context& ctx) { return err(std::move(ctx.errors())); } + +#ifdef TOML11_ENABLE_ACCESS_CHECK + detail::unset_access_flag_recursively(root); +#endif + return ok(std::move(root)); }