mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-23 08:31:43 +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
@@ -962,7 +962,7 @@ bool Value::empty() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Value::operator!() const { return isNull(); }
|
||||
Value::operator bool() const { return ! isNull(); }
|
||||
|
||||
void Value::clear() {
|
||||
JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
|
||||
|
Reference in New Issue
Block a user