node: add extra or operators for InputFlag types
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user