diff options
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/value.cc b/src/value.cc index be78327a..ea0bdf7b 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1263,11 +1263,8 @@ bool value_t::is_realzero() const return as_any_pointer().empty(); default: - assert(false); - break; + throw_(value_error, "Cannot determine if " << label() << " is really zero"); } - assert(false); - return true; } bool value_t::is_zero() const @@ -1296,11 +1293,8 @@ bool value_t::is_zero() const return as_any_pointer().empty(); default: - assert(false); - break; + throw_(value_error, "Cannot determine if " << label() << " is zero"); } - assert(false); - return true; } value_t value_t::value(const optional<datetime_t>& moment) const |