Skip to content

Commit

Permalink
No implicit conversion from Type to GenericValue
Browse files Browse the repository at this point in the history
  • Loading branch information
lichray committed Oct 24, 2014
1 parent 11f20c4 commit 0d90bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d90bcc

Please sign in to comment.