From 24f3f8ef4b76833f46c402db461c12bb389bb191 Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Mon, 23 Oct 2023 16:20:28 -0400 Subject: [PATCH] jsonpath jsonpath_expression --- include/jsoncons_ext/jsonpath/jsonpath_expression.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/jsoncons_ext/jsonpath/jsonpath_expression.hpp b/include/jsoncons_ext/jsonpath/jsonpath_expression.hpp index 5e5dbe89bd..01b7c4c848 100644 --- a/include/jsoncons_ext/jsonpath/jsonpath_expression.hpp +++ b/include/jsoncons_ext/jsonpath/jsonpath_expression.hpp @@ -2539,7 +2539,7 @@ namespace detail { template typename std::enable_if::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 resources{alloc_}; auto f = [&callback](const json_location_type& path, reference val) @@ -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) {