From 59181a052ff5e9fcead6c120945d666bbce8a9b1 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Tue, 13 Feb 2018 12:27:25 +0800 Subject: [PATCH] Revert "Fix API constness" This reverts commit 0d2580f1f0a24d24c0e015d01fc9567a7365ce7e. --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 269eb65..eb6d7dc 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -1300,7 +1300,7 @@ public: \note This overload is needed to avoid clashes with the generic primitive type AddMember(GenericValue&,T,Allocator&) overload below. \note Amortized Constant time complexity. */ - GenericValue& AddMember(GenericValue& name, const std::basic_string& value, Allocator& allocator) { + GenericValue& AddMember(GenericValue& name, std::basic_string& value, Allocator& allocator) { GenericValue v(value, allocator); return AddMember(name, v, allocator); }