From efc923acb4e902c8bb4cd65a01b85927dfd568b6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 19 Jan 2009 22:29:17 -0400 Subject: [PATCH] Allow var_t. --- src/scope.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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::operator *() const { return value->to_string(); } +template <> +inline datetime_t var_t::operator *() { + return value->to_datetime(); +} +template <> +inline const datetime_t var_t::operator *() const { + return value->to_datetime(); +} + } // namespace ledger #endif // _SCOPE_H