Allow var_t<datetime_t>.
This commit is contained in:
parent
bcfd6d1db9
commit
efc923acb4
1 changed files with 9 additions and 0 deletions
|
|
@ -260,6 +260,15 @@ inline const string var_t<string>::operator *() const {
|
||||||
return value->to_string();
|
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
|
} // namespace ledger
|
||||||
|
|
||||||
#endif // _SCOPE_H
|
#endif // _SCOPE_H
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue