From 23f8efc73bc90cb4d8cae2437dacbfa4e3d812d2 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Fri, 25 Dec 2020 17:44:14 -0300 Subject: [PATCH] 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 --- src/base/debug.hh | 1 - 1 file changed, 1 deletion(-) 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(); -- 2.30.2