Skip to content

Commit

Permalink
Merge pull request #443 from MonkeybreadSoftware/patch-1
Browse files Browse the repository at this point in the history
Fix for shadowed path variable
  • Loading branch information
danielaparker authored Sep 22, 2023
2 parents a414677 + 85dc640 commit 695775c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jsoncons_ext/jsonpath/expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3077,9 +3077,9 @@ namespace detail {

if ((options & result_options::path) == result_options::path)
{
auto callback = [&result](const json_location_type& path, reference)
auto callback = [&result](const json_location_type& pathp, reference)
{
result.emplace_back(path.to_string());
result.emplace_back(pathp.to_string());
};
evaluate(resources, root, path, instance, callback, options);
}
Expand Down

0 comments on commit 695775c

Please sign in to comment.