diff --git a/include/jsoncons_ext/jsonpath/json_location.hpp b/include/jsoncons_ext/jsonpath/json_location.hpp index c94af750f7..de10ab9f32 100644 --- a/include/jsoncons_ext/jsonpath/json_location.hpp +++ b/include/jsoncons_ext/jsonpath/json_location.hpp @@ -259,7 +259,7 @@ namespace jsonpath { using const_iterator = typename std::vector::const_iterator; basic_json_location(const path_node_type& node, const allocator_type& alloc = allocator_type()) - : alloc_(alloc), elements_(node.size(), path_element_type{}, alloc) + : alloc_(alloc), elements_(node.size(), path_element_type{}) { std::size_t len = node.size();