Util/Manual: add assertion to Get()
This commit is contained in:
parent
3ab0691eec
commit
14f9cdde6b
@ -93,10 +93,14 @@ public:
|
||||
}
|
||||
|
||||
T &Get() {
|
||||
assert(initialized);
|
||||
|
||||
return *(T *)data;
|
||||
}
|
||||
|
||||
const T &Get() const {
|
||||
assert(initialized);
|
||||
|
||||
return *(const T *)data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user