summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'amount.h')
-rw-r--r--amount.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/amount.h b/amount.h
index 17fec339..3d165b34 100644
--- a/amount.h
+++ b/amount.h
@@ -346,10 +346,6 @@ class commodity_t
return n > 0;
}
- void set_conversion(const amount_t& price) {
- conversion = price;
- }
-
amount_t value(const std::time_t moment = std::time(NULL));
bool valid() const {
@@ -369,6 +365,11 @@ class commodity_t
}
};
+inline std::ostream& operator<<(std::ostream& out, const commodity_t& comm) {
+ out << comm.symbol;
+ return out;
+}
+
inline commodity_t& amount_t::commodity() const {
if (! commodity_)
return *commodity_t::null_commodity;