From c1ddf0b724c62e660b5c15d08feec66db8a93ae5 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun, 8 May 2022 17:07:34 -0700 Subject: [PATCH] node: add extra or operators for InputFlag types --- app/node/param.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/node/param.h b/app/node/param.h index da2e12320..4eb000191 100644 --- a/app/node/param.h +++ b/app/node/param.h @@ -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;