Assert operand's id is not zero
This commit is contained in:
parent
f819ade0ef
commit
200310e8fa
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <bit>
|
||||
#include <cassert>
|
||||
#include <concepts>
|
||||
#include <cstddef>
|
||||
#include <functional>
|
||||
|
@ -136,6 +137,7 @@ public:
|
|||
}
|
||||
|
||||
Stream& operator<<(Id value) {
|
||||
assert(value.value != 0);
|
||||
return *this << value.value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue