diff --git a/include/jsoncons_ext/jsonpath/json_location.hpp b/include/jsoncons_ext/jsonpath/json_location.hpp index f008b29ff1..88544ea4e7 100644 --- a/include/jsoncons_ext/jsonpath/json_location.hpp +++ b/include/jsoncons_ext/jsonpath/json_location.hpp @@ -300,7 +300,7 @@ namespace jsonpath { const basic_path_node& base_node() const { - return base_node_; + return *base_node_; } string_type to_string() const