base: Remove negation operator in Flag
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Fri, 25 Dec 2020 20:44:14 +0000 (17:44 -0300)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 13 Jan 2021 11:15:18 +0000 (11:15 +0000)
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 <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38708
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/debug.hh

index 6006b14b91aac1c943b3203d29e2f21a75e8d986..4226de7a7ca5274520589288601d42299ec51485 100644 (file)
@@ -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();