Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragate-pris <agate-pris@users.noreply.github.com>2022-03-18 13:22:19 +0300
committeragate-pris <agate-pris@users.noreply.github.com>2022-03-18 13:22:19 +0300
commit9965ab37f6cfae3d58a0a6e34c76112866ace0b1 (patch)
treeeffbb7579f6cd1add49c6b4392e84a0123cd166b
parent8261c1ddf43f10de00fd8c9a67811d1486b2c784 (diff)
Allow the macro RAPIDJSON_DEFAULT_ALLOCATOR to be used in any namespace
`RAPIDJSON_DEFAULT_ALLOCATOR` uses names in the namespace `RAPIDJSON_NAMESPACE`. Replace this with a name starting in the global namespace.
-rw-r--r--include/rapidjson/document.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
index 1cdc29c0..41f92e8f 100644
--- a/include/rapidjson/document.h
+++ b/include/rapidjson/document.h
@@ -75,7 +75,7 @@ class GenericDocument;
User can define this to use CrtAllocator or MemoryPoolAllocator.
*/
#ifndef RAPIDJSON_DEFAULT_ALLOCATOR
-#define RAPIDJSON_DEFAULT_ALLOCATOR MemoryPoolAllocator<CrtAllocator>
+#define RAPIDJSON_DEFAULT_ALLOCATOR ::RAPIDJSON_NAMESPACE::MemoryPoolAllocator<::RAPIDJSON_NAMESPACE::CrtAllocator>
#endif
/*! \def RAPIDJSON_DEFAULT_STACK_ALLOCATOR