summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h3
1 files changed, 3 insertions, 0 deletions
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;