diff options
Diffstat (limited to 'amount.h')
-rw-r--r-- | amount.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; |