diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-17 03:43:29 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-17 03:43:29 -0400 |
commit | 9e235d04a1aa9d38fa6f1503902873d2f7ad8419 (patch) | |
tree | e871e6020a05c74fc757cb5207290454361b0147 /amount.cc | |
parent | aeb2fd0d39f0506ce4352ec29093e2c0f332525c (diff) | |
download | fork-ledger-9e235d04a1aa9d38fa6f1503902873d2f7ad8419.tar.gz fork-ledger-9e235d04a1aa9d38fa6f1503902873d2f7ad8419.tar.bz2 fork-ledger-9e235d04a1aa9d38fa6f1503902873d2f7ad8419.zip |
fixes
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,7 @@ #include "amount.h" +#include <list> + #include "gmp.h" #define MAX_PRECISION 10 @@ -503,7 +505,7 @@ std::ostream& operator<<(std::ostream& out, const amount_t& amt) out << quotient; } else { - strings_list strs; + std::list<std::string> strs; char buf[4]; mpz_t temp; @@ -525,7 +527,7 @@ std::ostream& operator<<(std::ostream& out, const amount_t& amt) bool printed = false; - for (strings_list::reverse_iterator i = strs.rbegin(); + for (std::list<std::string>::reverse_iterator i = strs.rbegin(); i != strs.rend(); i++) { if (printed) { |