node: add extra or operators for InputFlag types

This commit is contained in:
itsmattkc
2022-05-08 17:07:34 -07:00
parent 93e5351d33
commit c1ddf0b724
+13
View File
@@ -65,6 +65,19 @@ public:
return *this;
}
InputFlags operator|(const InputFlag &f) const
{
InputFlags i = *this;
i |= f;
return i;
}
InputFlags &operator|=(const InputFlag &f)
{
f_ |= f;
return *this;
}
InputFlags operator&(const InputFlags &f) const
{
InputFlags i = *this;