SF #3567118: Fix Nullable handling in trunk

This commit is contained in:
Aleksandar Fabijanic
2012-09-13 04:04:55 +00:00
parent b6b95b8259
commit 5d93d2bba1
4 changed files with 16 additions and 4 deletions

View File

@@ -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.
///