diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 4a3a1a21e..121fc076a 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -451,7 +451,7 @@ class GenericValue { \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