summaryrefslogtreecommitdiff
path: root/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'value.cc')
-rw-r--r--value.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/value.cc b/value.cc
index 2a211fd1..4a273abc 100644
--- a/value.cc
+++ b/value.cc
@@ -642,6 +642,26 @@ void export_value()
.def(self / other<amount_t>())
.def(self / int())
+ .def(other<balance_pair_t>() + self)
+ .def(other<balance_t>() + self)
+ .def(other<amount_t>() + self)
+ .def(int() + self)
+
+ .def(other<balance_pair_t>() - self)
+ .def(other<balance_t>() - self)
+ .def(other<amount_t>() - self)
+ .def(int() - self)
+
+ .def(other<balance_pair_t>() * self)
+ .def(other<balance_t>() * self)
+ .def(other<amount_t>() * self)
+ .def(int() * self)
+
+ .def(other<balance_pair_t>() / self)
+ .def(other<balance_t>() / self)
+ .def(other<amount_t>() / self)
+ .def(int() / self)
+
.def(self += self)
.def(self += other<balance_pair_t>())
.def(self += other<balance_t>())