summaryrefslogtreecommitdiff
path: root/src/scope.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-19 22:29:17 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-19 22:29:17 -0400
commitefc923acb4e902c8bb4cd65a01b85927dfd568b6 (patch)
treecbf7cddd7c6a234e4df1c3b6ceb182ad46b3eb53 /src/scope.h
parentbcfd6d1db92260f3453f9733db727bf408a0732d (diff)
downloadfork-ledger-efc923acb4e902c8bb4cd65a01b85927dfd568b6.tar.gz
fork-ledger-efc923acb4e902c8bb4cd65a01b85927dfd568b6.tar.bz2
fork-ledger-efc923acb4e902c8bb4cd65a01b85927dfd568b6.zip
Allow var_t<datetime_t>.
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 e4f3f76c..614cfb30 100644
--- a/src/scope.h
+++ b/src/scope.h
@@ -260,6 +260,15 @@ inline const string var_t<string>::operator *() const {
return value->to_string();
}
+template <>
+inline datetime_t var_t<datetime_t>::operator *() {
+ return value->to_datetime();
+}
+template <>
+inline const datetime_t var_t<datetime_t>::operator *() const {
+ return value->to_datetime();
+}
+
} // namespace ledger
#endif // _SCOPE_H