summaryrefslogtreecommitdiff
path: root/src/scope.h
diff options
context:
space:
mode:
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();
}