summaryrefslogtreecommitdiff
path: root/src/numerics/balpair.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-21 20:45:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:39:07 -0400
commitce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7 (patch)
tree6c5f1667b5bfc908e903f1bc204c7f18d8bd419b /src/numerics/balpair.h
parentd23ed020abf494a046b499cdce1c0957cd5b4783 (diff)
downloadfork-ledger-ce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7.tar.gz
fork-ledger-ce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7.tar.bz2
fork-ledger-ce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7.zip
Getting things to compile again.
Diffstat (limited to 'src/numerics/balpair.h')
-rw-r--r--src/numerics/balpair.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/numerics/balpair.h b/src/numerics/balpair.h
index af1a25ab..4aa682fc 100644
--- a/src/numerics/balpair.h
+++ b/src/numerics/balpair.h
@@ -83,17 +83,6 @@ class balance_pair_t
*/
optional<balance_t> cost;
- /**
- * The `quantity' method provides direct access to the balance_t
- * base-class part of the balance pair.
- */
- balance_t& quantity() {
- return *this;
- }
- const balance_t& quantity() const {
- return *this;
- }
-
friend class value_t;
friend class entry_base_t;
@@ -225,6 +214,17 @@ public:
return quantity() == amt;
}
+ /**
+ * The `quantity' method provides direct access to the balance_t
+ * base-class part of the balance pair.
+ */
+ balance_t& quantity() {
+ return *this;
+ }
+ const balance_t& quantity() const {
+ return *this;
+ }
+
// unary negation
void in_place_negate() {
#if 0