summaryrefslogtreecommitdiff
path: root/src/balpair.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/balpair.h')
-rw-r--r--src/balpair.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/balpair.h b/src/balpair.h
index 0178519f..ed3525d9 100644
--- a/src/balpair.h
+++ b/src/balpair.h
@@ -103,8 +103,7 @@ public:
balance_pair_t(const balance_t& bal) : balance_t(bal) {
TRACE_CTOR(balance_pair_t, "const balance_t&");
}
- balance_pair_t(const balance_t& bal,
- const balance_t& cost_bal)
+ balance_pair_t(const balance_t& bal, const balance_t& cost_bal)
: balance_t(bal), cost(cost_bal) {
TRACE_CTOR(balance_pair_t, "const balance_t&, const balance_t&");
}
@@ -310,6 +309,10 @@ public:
return *this;
}
+ optional<balance_pair_t>
+ value(const optional<datetime_t>& moment = none,
+ const optional<commodity_t&>& in_terms_of = none) const;
+
/**
* Truth tests. An balance pair may be truth tested by comparison
* to another balance pair, or by using one of the inherited