mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-15 23:20:05 +02:00
Allow Json::Value to be used in a boolean context (#695)
Must bump soversion too.
This commit is contained in:

committed by
Christopher Dunn

parent
c39aa295e4
commit
9079422ac1
@@ -400,8 +400,8 @@ Json::Value obj_value(Json::objectValue); // {}
|
||||
/// otherwise, false.
|
||||
bool empty() const;
|
||||
|
||||
/// Return isNull()
|
||||
bool operator!() const;
|
||||
/// Return !isNull()
|
||||
explicit operator bool() const;
|
||||
|
||||
/// Remove all object members and array elements.
|
||||
/// \pre type() is arrayValue, objectValue, or nullValue
|
||||
|
Reference in New Issue
Block a user