feat: unset access flag before returning

This commit is contained in:
ToruNiina
2025-01-30 00:26:53 +09:00
parent 8ec9257f26
commit d2b66ba2e3

View File

@@ -3426,6 +3426,11 @@ parse_file(location& loc, context<TC>& ctx)
{ {
return err(std::move(ctx.errors())); return err(std::move(ctx.errors()));
} }
#ifdef TOML11_ENABLE_ACCESS_CHECK
detail::unset_access_flag_recursively(root);
#endif
return ok(std::move(root)); return ok(std::move(root));
} }