From bd455c98743ce354b875d67a1d607a682d604fe0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Nov 2009 23:23:22 -0500 Subject: Added string conversion op for amounts and balances --- src/amount.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/amount.h') diff --git a/src/amount.h b/src/amount.h index a8c08905..a37efdb8 100644 --- a/src/amount.h +++ b/src/amount.h @@ -496,6 +496,9 @@ public: long to_long() const; bool fits_in_long() const; + operator string() const { + return to_string(); + } string to_string() const; string to_fullstring() const; string quantity_string() const; -- cgit v1.2.3