[SIL] Added operator bool to ref.

This commit is contained in:
Nate Chandler
2023-05-02 08:36:12 -07:00
parent 7e9f5e4fdc
commit dfe2c00155

View File

@@ -181,6 +181,8 @@ template <typename BitfieldContainer> struct BitfieldRef {
return ref;
}
explicit operator bool() { return ref; }
// Stack-allocated state must be nested relative to other node bitfields.
struct StackState {
BitfieldRef &ref;