Delete nullptr Json::Value constructor (#1194)

This patch adds an explicit ctor with a std::nullptr_t argument, that is `delete`-d. This keeps Json::Value from exposing a coding error when automatically promoted to a const char* type.
This commit is contained in:
nathanruiz 2020-06-24 07:52:28 +10:00 committed by GitHub
parent 632044ad95
commit c8453d39d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,6 +342,7 @@ public:
Value(const StaticString& value);
Value(const String& value);
Value(bool value);
Value(std::nullptr_t ptr) = delete;
Value(const Value& other);
Value(Value&& other);
~Value();