diff options
author | agate-pris <agate-pris@users.noreply.github.com> | 2022-03-18 13:32:01 +0300 |
---|---|---|
committer | agate-pris <agate-pris@users.noreply.github.com> | 2022-03-18 13:32:01 +0300 |
commit | 79d7a448e93b449815ab8db7822d7828e48e83f1 (patch) | |
tree | 7013f3d4e1b603b0ff5e4d66e13a3e55bc4f258d | |
parent | 9965ab37f6cfae3d58a0a6e34c76112866ace0b1 (diff) |
Allow the macro RAPIDJSON_DEFAULT_STACK_ALLOCATOR to be used in any namespace
RAPIDJSON_DEFAULT_STACK_ALLOCATOR uses names in the namespace
`RAPIDJSON_NAMESPACE`. Replace this with a name starting in the global
namespace.
-rw-r--r-- | include/rapidjson/document.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 41f92e8f..dd29f699 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -85,7 +85,7 @@ class GenericDocument; User can define this to use CrtAllocator or MemoryPoolAllocator. */ #ifndef RAPIDJSON_DEFAULT_STACK_ALLOCATOR -#define RAPIDJSON_DEFAULT_STACK_ALLOCATOR CrtAllocator +#define RAPIDJSON_DEFAULT_STACK_ALLOCATOR ::RAPIDJSON_NAMESPACE::CrtAllocator #endif /*! \def RAPIDJSON_VALUE_DEFAULT_OBJECT_CAPACITY |