summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc
index 6623e1a1..63719266 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -392,6 +392,7 @@ value_t& value_t::operator+=(const value_t& val)
throw_(value_error,
"Cannot add " << label() << " to " << val.label());
+ return *this;
}
value_t& value_t::operator-=(const value_t& val)
@@ -541,6 +542,7 @@ value_t& value_t::operator-=(const value_t& val)
throw_(value_error,
"Cannot subtract " << label() << " from " << val.label());
+ return *this;
}
value_t& value_t::operator*=(const value_t& val)
@@ -626,6 +628,7 @@ value_t& value_t::operator*=(const value_t& val)
throw_(value_error,
"Cannot multiply " << label() << " with " << val.label());
+ return *this;
}
value_t& value_t::operator/=(const value_t& val)
@@ -695,6 +698,7 @@ value_t& value_t::operator/=(const value_t& val)
throw_(value_error,
"Cannot divide " << label() << " by " << val.label());
+ return *this;
}
@@ -1228,6 +1232,7 @@ value_t value_t::value(const optional<moment_t>& moment) const
}
throw_(value_error, "Cannot find the value of " << label());
+ return value_t();
}
void value_t::in_place_reduce()
@@ -1269,6 +1274,7 @@ value_t value_t::round() const
}
throw_(value_error, "Cannot round " << label());
+ return value_t();
}
value_t value_t::unround() const