summaryrefslogtreecommitdiff
path: root/amount.cc
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.cc
parent84fe84bbd2185d3bd997a3ebac99417f99376cfb (diff)
downloadfork-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.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/amount.cc b/amount.cc
index 368a366d..9a88db38 100644
--- a/amount.cc
+++ b/amount.cc
@@ -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)
{