From b7777eac684f5f2b20208a49ece118defe82c342 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Aug 2004 22:25:12 -0400 Subject: got entry working again --- amount.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'amount.cc') 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) { -- cgit v1.2.3