summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
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)
{