aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/Manual.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-09 23:08:22 +0100
committerMax Kellermann <max@duempel.org>2014-12-09 23:08:22 +0100
commit14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938 (patch)
treede70a3ca41a9350e6b1bc0cacf84629889e780a7 /src/util/Manual.hxx
parent3ab0691eecac239aee9b780928438a7df7d8394d (diff)
downloadmpd-14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938.tar.gz
mpd-14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938.tar.xz
mpd-14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938.zip
Util/Manual: add assertion to Get()
Diffstat (limited to '')
-rw-r--r--src/util/Manual.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx
index 7b1023f41..684c7e1da 100644
--- a/src/util/Manual.hxx
+++ b/src/util/Manual.hxx
@@ -93,10 +93,14 @@ public:
}
T &Get() {
+ assert(initialized);
+
return *(T *)data;
}
const T &Get() const {
+ assert(initialized);
+
return *(const T *)data;
}