summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index 006c554a..c6d2c27c 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -241,6 +241,12 @@ public:
else
commodity_ = NULL;
}
+ amount_t(const amount_t& amt, const annotation_t& details) : quantity(NULL) {
+ TRACE_CTOR(amount_t, "const amount_t&, const annotation_t&");
+ assert(amt.quantity);
+ _copy(amt);
+ annotate(details);
+ }
amount_t& operator=(const amount_t& amt);
#ifdef HAVE_GDTOA