diff --git a/contrib/json11/json11.cpp b/contrib/json11/json11.cpp index bc8bde056..40b01e6a7 100755 --- a/contrib/json11/json11.cpp +++ b/contrib/json11/json11.cpp @@ -242,11 +242,11 @@ const Json & static_null() { * Constructors */ -Json::Json() JSON11_NOEXCEPT : m_ptr(statics().null) {} -Json::Json(std::nullptr_t) JSON11_NOEXCEPT : m_ptr(statics().null) {} +Json::Json() JSON11_NOEXCEPT : m_ptr(statics().null) {} +Json::Json(std::nullptr_t) : m_ptr(statics().null) {} Json::Json(double value) : m_ptr(make_shared(value)) {} Json::Json(int value) : m_ptr(make_shared(value)) {} -Json::Json(bool value) : m_ptr(value ? statics().t : statics().f) {} +Json::Json(bool value) JSON11_NOEXCEPT : m_ptr(value ? statics().t : statics().f) {} Json::Json(const string &value) : m_ptr(make_shared(value)) {} Json::Json(string &&value) : m_ptr(make_shared(move(value))) {} Json::Json(const char * value) : m_ptr(make_shared(value)) {} diff --git a/contrib/json11/json11.hpp b/contrib/json11/json11.hpp index 3f1ca40e9..22f3c6564 100755 --- a/contrib/json11/json11.hpp +++ b/contrib/json11/json11.hpp @@ -83,11 +83,11 @@ class Json final { typedef std::map object; // Constructors for the various types of JSON value. - Json() JSON11_NOEXCEPT; // NUL - Json(std::nullptr_t) JSON11_NOEXCEPT; // NUL + Json() JSON11_NOEXCEPT; // NUL + Json(std::nullptr_t); // NUL Json(double value); // NUMBER Json(int value); // NUMBER - Json(bool value); // BOOL + Json(bool value) JSON11_NOEXCEPT; // BOOL Json(const std::string &value); // STRING Json(std::string &&value); // STRING Json(const char * value); // STRING