On Thu, 8 Feb 2024 10:22:10 +0200 Andrius Merkys <mer...@debian.org> wrote:
I attach a patch which fixes the issue by setting -std=c++14 (as needed
by googletest) and commenting out a code line in
include/rapidjson/document.h which is gone in the newest upstream commit
[1].
[1]
https://github.com/Tencent/rapidjson/commit/a98e99992bd633a2736cc41f96ec85ef0c50e44d
A more elegant solution would be to configure rapidjson with
-DRAPIDJSON_BUILD_CXX11=OFF and set -std=c++14 via
DEB_CXXFLAGS_MAINT_APPEND in debian/rules, this would avoid patching
CMakeLists.txt.
Andrius