Skip to content

Commit

Permalink
jsonpath jsonpath_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Oct 23, 2023
1 parent 0b9541a commit 24f3f8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jsoncons_ext/jsonpath/jsonpath_expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ namespace detail {

template <class BinaryCallback>
typename std::enable_if<extension_traits::is_binary_function_object<BinaryCallback,const string_type&,const_reference>::value,void>::type
evaluate(const_reference instance, BinaryCallback callback, result_options options = result_options()) const
evaluate(reference instance, BinaryCallback callback, result_options options = result_options()) const
{
jsoncons::jsonpath::detail::dynamic_resources<Json,reference> resources{alloc_};
auto f = [&callback](const json_location_type& path, reference val)
Expand All @@ -2561,7 +2561,7 @@ namespace detail {
expr_.evaluate_with_replacement(resources, instance, resources.root_path_node(), instance, f);
}

Json evaluate(const_reference instance, result_options options = result_options()) const
Json evaluate(reference instance, result_options options = result_options()) const
{
if ((options & result_options::path) == result_options::path)
{
Expand Down

0 comments on commit 24f3f8e

Please sign in to comment.