mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
feat: unset access flag before returning
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user