I think this is actually a bug in Rapid JSON: $ cat test.cc #include <rapidjson/document.h>
int
main(void)
{
return 0;
}
$ g++-14 -g -O2 -o test test.cc
In file included from test.cc:1:
/usr/include/rapidjson/document.h: In member function
‘rapidjson::GenericStringRef<CharType>&
rapidjson::GenericStringRef<CharType>::operator=(const
rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only
member ‘rapidjson::GenericStringRef<CharType>::length’
319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s =
rhs.s; length = rhs.length; }
|
J.
signature.asc
Description: PGP signature

