Util/Manual: add assertion to Get()

This commit is contained in:
Max Kellermann 2014-12-09 23:08:22 +01:00
parent 3ab0691eec
commit 14f9cdde6b

View File

@ -93,10 +93,14 @@ public:
} }
T &Get() { T &Get() {
assert(initialized);
return *(T *)data; return *(T *)data;
} }
const T &Get() const { const T &Get() const {
assert(initialized);
return *(const T *)data; return *(const T *)data;
} }