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) {