base: Remove flag from allFlags on destruction
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Fri, 25 Dec 2020 17:31:02 +0000 (14:31 -0300)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 13 Jan 2021 11:15:18 +0000 (11:15 +0000)
commit0c3dcfd3146e452b25cf4a5e155a1720627658f8
treeef1c65e97e3545bd50beca50c601adc0fa095211
parent23f8efc73bc90cb4d8cae2437dacbfa4e3d812d2
base: Remove flag from allFlags on destruction

When a flag is destroyed it must be removed from the list
containing all flags.

Use this opportunity to remove "using namespace std" since
it is barely used.

Change-Id: I201371a770c56e11b92532e146d577c6ecb29d34
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38709
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
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.cc