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.h | |
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.h')
-rw-r--r-- | amount.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -45,6 +45,12 @@ class amount_t std::istringstream str(value); str >> *this; } + amount_t(const char * value) { + _init(); + std::string valstr(value); + std::istringstream str(valstr); + str >> *this; + } amount_t(const bool value); amount_t(const int value); amount_t(const unsigned int value); @@ -59,6 +65,7 @@ class amount_t // assignment operator amount_t& operator=(const amount_t& amt); amount_t& operator=(const std::string& value); + amount_t& operator=(const char * value); amount_t& operator=(const bool value); amount_t& operator=(const int value); amount_t& operator=(const unsigned int value); |