diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-07 22:25:12 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-07 22:25:12 -0400 |
commit | b7777eac684f5f2b20208a49ece118defe82c342 (patch) | |
tree | 1162800554d300e519836bca2bafb7c8db780be6 /amount.cc | |
parent | 84fe84bbd2185d3bd997a3ebac99417f99376cfb (diff) | |
download | fork-ledger-b7777eac684f5f2b20208a49ece118defe82c342.tar.gz fork-ledger-b7777eac684f5f2b20208a49ece118defe82c342.tar.bz2 fork-ledger-b7777eac684f5f2b20208a49ece118defe82c342.zip |
got entry working again
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -144,6 +144,14 @@ amount_t& amount_t::operator=(const std::string& value) return *this; } +amount_t& amount_t::operator=(const char * value) +{ + std::string valstr(value); + std::istringstream str(valstr); + parse(str); + return *this; +} + // assignment operator amount_t& amount_t::operator=(const amount_t& amt) { |