Files
gentoo/dev-libs/rapidjson/files/rapidjson-1.1.0-gcc14-const.patch
Sam James 120da2933e dev-libs/rapidjson: fix compat w/ gcc 14
Revbump to fix installed headers as well as add EAPI 8.

While here, style tweaks to conform w/ skel.ebuild and sync live ebuild.

Closes: https://bugs.gentoo.org/914583
Signed-off-by: Sam James <sam@gentoo.org>
2023-09-24 03:19:14 +01:00

21 lines
799 B
Diff

https://bugs.gentoo.org/914583
https://github.com/Tencent/rapidjson/commit/3b2441b87f99ab65f37b141a7b548ebadb607b96
https://github.com/Tencent/rapidjson/issues/718
From 3b2441b87f99ab65f37b141a7b548ebadb607b96 Mon Sep 17 00:00:00 2001
From: Janusz Chorko <janusz.chorko@apdu.pl>
Date: Fri, 26 Aug 2016 21:17:38 +0200
Subject: [PATCH] Removed non-compiling assignment operator. Fixed #718
--- 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; }