From 7606d05fedbce5f548d0d3f933dbdd12c0d8aaa0 Mon Sep 17 00:00:00 2001 From: "miloyip@gmail.com" Date: Wed, 14 Nov 2012 07:14:46 +0000 Subject: [PATCH] Fixed Issue 45: const Value cannot be stringify git-svn-id: https://rapidjson.googlecode.com/svn/trunk@84 c5894555-1306-4e8d-425f-1f6f381ee07c --- 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 f848322..da3a826 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -517,7 +517,7 @@ int z = a[0u].GetInt(); // This works too. \param handler An object implementing concept Handler. */ template - GenericValue& Accept(Handler& handler) { + const GenericValue& Accept(Handler& handler) const { switch(GetType()) { case kNullType: handler.Null(); break; case kFalseType: handler.Bool(false); break;