Apply patches to rapidjson

This commit is contained in:
2025-01-15 00:16:32 +02:00
parent 56a948497f
commit 9f9bddee9f
6 changed files with 74 additions and 7 deletions

View File

@@ -43,6 +43,9 @@ public:
typedef typename Encoding::Ch Ch;
GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}
#if false
GenericStringBuffer(const GenericStringBuffer& other) : stack_(other.stack_) {}
#endif
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
GenericStringBuffer(GenericStringBuffer&& rhs) : stack_(std::move(rhs.stack_)) {}
@@ -57,6 +60,9 @@ public:
void PutUnsafe(Ch c) { *stack_.template PushUnsafe<Ch>() = c; }
void Flush() {}
#if false
void Destroy() { stack_.Clear(); stack_.ShrinkToFit(); }
#endif
void Clear() { stack_.Clear(); }
void ShrinkToFit() {
// Push and pop a null terminator. This is safe.
@@ -89,7 +95,9 @@ public:
private:
// Prohibit copy constructor & assignment operator.
#if false
GenericStringBuffer(const GenericStringBuffer&);
#endif
GenericStringBuffer& operator=(const GenericStringBuffer&);
};