We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1909a9 commit 0d2580fCopy full SHA for 0d2580f
include/rapidjson/document.h
@@ -1300,7 +1300,7 @@ class GenericValue {
1300
\note This overload is needed to avoid clashes with the generic primitive type AddMember(GenericValue&,T,Allocator&) overload below.
1301
\note Amortized Constant time complexity.
1302
*/
1303
- GenericValue& AddMember(GenericValue& name, std::basic_string<Ch>& value, Allocator& allocator) {
+ GenericValue& AddMember(GenericValue& name, const std::basic_string<Ch>& value, Allocator& allocator) {
1304
GenericValue v(value, allocator);
1305
return AddMember(name, v, allocator);
1306
}
0 commit comments