mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
SF #3567118: Fix Nullable handling in trunk
This commit is contained in:
@@ -182,6 +182,17 @@ public:
|
||||
return !(*this == other) && !(*this < other);
|
||||
}
|
||||
|
||||
C& value()
|
||||
/// Returns the Nullable's value.
|
||||
///
|
||||
/// Throws a NullValueException if the Nullable is empty.
|
||||
{
|
||||
if (!_isNull)
|
||||
return _value;
|
||||
else
|
||||
throw NullValueException();
|
||||
}
|
||||
|
||||
const C& value() const
|
||||
/// Returns the Nullable's value.
|
||||
///
|
||||
|
Reference in New Issue
Block a user