Commit 14f9cdde authored by Max Kellermann's avatar Max Kellermann

Util/Manual: add assertion to Get()

parent 3ab0691e
......@@ -93,10 +93,14 @@ public:
}
T &Get() {
assert(initialized);
return *(T *)data;
}
const T &Get() const {
assert(initialized);
return *(const T *)data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment