diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/scope.h | 9 |
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 |