Apply patches to rapidjson
Some checks are pending
Build Android / Game (Android, Release ARM64) (push) Waiting to run
Build iOS / Game (iOS, Release ARM64) (push) Waiting to run
Build Linux / Editor (Linux, Development x64) (push) Waiting to run
Build Linux / Game (Linux, Release x64) (push) Waiting to run
Build macOS / Editor (Mac, Development ARM64) (push) Waiting to run
Build macOS / Game (Mac, Release ARM64) (push) Waiting to run
Build Windows / Editor (Windows, Development x64) (push) Waiting to run
Build Windows / Game (Windows, Release x64) (push) Waiting to run
Cooker / Cook (Mac) (push) Waiting to run
Tests / Tests (Linux) (push) Waiting to run
Tests / Tests (Windows) (push) Waiting to run

This commit is contained in:
2025-01-15 00:16:32 +02:00
parent ba271d025c
commit a1c77cc41a
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&);
};