mem: Stop "using namespace std"

Change-Id: I26fd73f1b7d38e1e00eece12459f7a96227900ed
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39555
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
This commit is contained in:
Gabe Black
2021-01-21 02:43:46 -08:00
parent e24ae581ec
commit 3e628206b0
35 changed files with 247 additions and 304 deletions

View File

@@ -524,11 +524,6 @@ void unset_tbe(${{self.TBEType.c_ident}}*& m_tbe_ptr);
for include_path in includes:
code('#include "${{include_path}}"')
code('''
using namespace std;
''')
# include object classes
seen_types = set()
for var in self.objects:
@@ -544,7 +539,7 @@ std::vector<Stats::Vector *> $c_ident::eventVec;
std::vector<std::vector<Stats::Vector *> > $c_ident::transVec;
// for adding information to the protocol debug trace
stringstream ${ident}_transitionComment;
std::stringstream ${ident}_transitionComment;
#ifndef NDEBUG
#define APPEND_TRANSITION_COMMENT(str) (${ident}_transitionComment << str)
@@ -978,7 +973,7 @@ $c_ident::getMemRespQueue() const
}
void
$c_ident::print(ostream& out) const
$c_ident::print(std::ostream& out) const
{
out << "[$c_ident " << m_version << "]";
}
@@ -1221,8 +1216,6 @@ $c_ident::functionalReadBuffers(PacketPtr& pkt)
code('''
using namespace std;
void
${ident}_Controller::wakeup()
{