-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compilation problem on gcc-14.2 (#167)
- Loading branch information
1 parent
98bbeef
commit 1bcfa53
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
third_party/com_github_tencent_rapidjson/0001-remove-non-compiling-assignment-operator.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 4bd1e5f857adfc3363126e2001de935183808f1a Mon Sep 17 00:00:00 2001 | ||
From: zhangyi1357 <[email protected]> | ||
Date: Wed, 7 Aug 2024 14:31:29 +0800 | ||
Subject: [PATCH] remove non-compiling assignment operator | ||
|
||
--- | ||
include/rapidjson/document.h | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h | ||
index e3e20dfb..b0f1f70b 100644 | ||
--- a/include/rapidjson/document.h | ||
+++ b/include/rapidjson/document.h | ||
@@ -316,8 +316,6 @@ struct GenericStringRef { | ||
|
||
GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} | ||
|
||
- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } | ||
- | ||
//! implicit conversion to plain CharType pointer | ||
operator const Ch *() const { return s; } | ||
|
||
-- | ||
2.46.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters