Rename to fix allocator shadowing

The identifier 'allocator' in the RapidJSON StdAllocator class declaration shadows the identifier 'allocator' in the
std::allocator class. To fix this, rename the 'allocator'
identifier in the StdAllocator class declaration to a different name.
This commit is contained in:
Albert Hung (Embedded) 2023-08-17 15:26:07 +08:00 committed by Milo Yip
parent 5e17dbed34
commit 476ffa2fd2
1 changed files with 2 additions and 2 deletions

View File

@ -497,9 +497,9 @@ public:
#endif
/* implicit */
StdAllocator(const BaseAllocator& allocator) RAPIDJSON_NOEXCEPT :
StdAllocator(const BaseAllocator& baseAllocator) RAPIDJSON_NOEXCEPT :
allocator_type(),
baseAllocator_(allocator)
baseAllocator_(baseAllocator)
{ }
~StdAllocator() RAPIDJSON_NOEXCEPT