aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Manual.hxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx
index dd5b7e02f..7b1023f41 100644
--- a/src/util/Manual.hxx
+++ b/src/util/Manual.hxx
@@ -92,20 +92,28 @@ public:
#endif
}
- operator T &() {
+ T &Get() {
return *(T *)data;
}
- operator const T &() const {
+ const T &Get() const {
return *(const T *)data;
}
+ operator T &() {
+ return Get();
+ }
+
+ operator const T &() const {
+ return Get();
+ }
+
T *operator->() {
- return (T *)data;
+ return &Get();
}
const T *operator->() const {
- return (T *)data;
+ return &Get();
}
};