diff options
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) { |