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.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'amount.h') 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); -- cgit v1.2.3