diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 8aed9c93b..a07cb0449 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -3601,7 +3601,7 @@ class GenericValue { template bool AddSchema(GenericDocument& schema) { - return AddSchema(schema, schema.allocator_); + return AddSchema(schema, *schema.allocator_); } template bool AddSchema(GenericValue& schema,