From 0d90bcc709c9f6554ca9ee7f1d6fd985bf36bd93 Mon Sep 17 00:00:00 2001 From: Zhihao Yuan Date: Thu, 23 Oct 2014 13:34:51 -0400 Subject: [PATCH] No implicit conversion from Type to GenericValue --- 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 4a3a1a2..121fc07 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -451,7 +451,7 @@ public: \param type Type of the value. \note Default content for number is zero. */ - GenericValue(Type type) RAPIDJSON_NOEXCEPT : data_(), flags_() { + explicit GenericValue(Type type) RAPIDJSON_NOEXCEPT : data_(), flags_() { static const unsigned defaultFlags[7] = { kNullFlag, kFalseFlag, kTrueFlag, kObjectFlag, kArrayFlag, kConstStringFlag, kNumberAnyFlag