summaryrefslogtreecommitdiff
path: root/src/scope.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-17 21:19:31 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-17 21:19:31 -0400
commit4ec2dfeef13ead1d87302ef953e05efec102bb25 (patch)
tree0ff109dd6aaccf466ecbd64f80ae3138b9219b6a /src/scope.h
parent93d195f1d97c376c26e5a7e88d6b0fc6e3b8e2d0 (diff)
downloadfork-ledger-4ec2dfeef13ead1d87302ef953e05efec102bb25.tar.gz
fork-ledger-4ec2dfeef13ead1d87302ef953e05efec102bb25.tar.bz2
fork-ledger-4ec2dfeef13ead1d87302ef953e05efec102bb25.zip
Added --flat option, to flatten the balance report
Diffstat (limited to 'src/scope.h')
-rw-r--r--src/scope.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scope.h b/src/scope.h
index 2ab788fc..b49e3ebe 100644
--- a/src/scope.h
+++ b/src/scope.h
@@ -345,6 +345,15 @@ public:
};
template <>
+inline bool var_t<bool>::operator *() {
+ return value->to_boolean();
+}
+template <>
+inline bool var_t<bool>::operator *() const {
+ return value->to_boolean();
+}
+
+template <>
inline long var_t<long>::operator *() {
return value->to_long();
}