summaryrefslogtreecommitdiff
path: root/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'value.cc')
-rw-r--r--value.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/value.cc b/value.cc
index fe8c5264..2a211fd1 100644
--- a/value.cc
+++ b/value.cc
@@ -618,6 +618,30 @@ void export_value()
.def(init<unsigned int>())
.def(init<bool>())
+ .def(self + self)
+ .def(self + other<balance_pair_t>())
+ .def(self + other<balance_t>())
+ .def(self + other<amount_t>())
+ .def(self + int())
+
+ .def(self - self)
+ .def(self - other<balance_pair_t>())
+ .def(self - other<balance_t>())
+ .def(self - other<amount_t>())
+ .def(self - int())
+
+ .def(self * self)
+ .def(self * other<balance_pair_t>())
+ .def(self * other<balance_t>())
+ .def(self * other<amount_t>())
+ .def(self * int())
+
+ .def(self / self)
+ .def(self / other<balance_pair_t>())
+ .def(self / other<balance_t>())
+ .def(self / other<amount_t>())
+ .def(self / int())
+
.def(self += self)
.def(self += other<balance_pair_t>())
.def(self += other<balance_t>())