Skip to content

Commit

Permalink
Fix Parse allocator argument passed to AddSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Aug 23, 2024
1 parent cef1042 commit 5a78b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -3601,7 +3601,7 @@ class GenericValue {
template <typename SourceEncoding, typename SourceAllocator,
typename SourceStackAllocator>
bool AddSchema(GenericDocument<SourceEncoding, SourceAllocator, SourceStackAllocator>& schema) {
return AddSchema(schema, schema.allocator_);
return AddSchema(schema, *schema.allocator_);
}
template <typename SourceEncoding, typename SourceAllocator>
bool AddSchema(GenericValue<SourceEncoding, SourceAllocator>& schema,
Expand Down

0 comments on commit 5a78b34

Please sign in to comment.