summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-07 22:25:12 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-07 22:25:12 -0400
commitb7777eac684f5f2b20208a49ece118defe82c342 (patch)
tree1162800554d300e519836bca2bafb7c8db780be6 /amount.h
parent84fe84bbd2185d3bd997a3ebac99417f99376cfb (diff)
downloadfork-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/amount.h b/amount.h
index bfcea2c2..f2d44010 100644
--- a/amount.h
+++ b/amount.h
@@ -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);