From: Daniel R. Carvalho Date: Fri, 25 Dec 2020 20:44:14 +0000 (-0300) Subject: base: Remove negation operator in Flag X-Git-Tag: develop-gem5-snapshot~305 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23f8efc73bc90cb4d8cae2437dacbfa4e3d812d2;p=gem5.git base: Remove negation operator in Flag There is already a bool conversion operator, so there is no need to provide a negation operator. Change-Id: If5f99f8a0bb1707c115d139417aedd47bd162963 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38708 Reviewed-by: Gabe Black Maintainer: Bobby R. Bruce Tested-by: kokoro --- diff --git a/src/base/debug.hh b/src/base/debug.hh index 6006b14b9..4226de7a7 100644 --- a/src/base/debug.hh +++ b/src/base/debug.hh @@ -73,7 +73,6 @@ class Flag virtual bool status() const = 0; operator bool() const { return status(); } - bool operator!() const { return !status(); } static void globalEnable(); static void globalDisable();