From 140785d24c27f3afddbe95c9e504e27bf8274290 Mon Sep 17 00:00:00 2001 From: Nathan Binkert <nate@binkert.org> Date: Wed, 10 Mar 2010 18:33:11 -0800 Subject: ruby: get rid of std-includes.hh Do not use "using namespace std;" in headers Include header files as needed --- src/mem/ruby/common/Debug.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mem/ruby/common/Debug.cc') diff --git a/src/mem/ruby/common/Debug.cc b/src/mem/ruby/common/Debug.cc index 68ab2448b..e67dc68ba 100644 --- a/src/mem/ruby/common/Debug.cc +++ b/src/mem/ruby/common/Debug.cc @@ -41,9 +41,11 @@ #include "mem/gems_common/util.hh" #include "base/misc.hh" +using namespace std; + class Debug; extern Debug* g_debug_ptr; -std::ostream * debug_cout_ptr; +ostream *debug_cout_ptr; bool Debug::m_protocol_trace = false; struct DebugComponentData @@ -328,7 +330,7 @@ void Debug::setDebugOutputFile (const char * filename) if (m_fout.is_open() ) { m_fout.close (); } - m_fout.open (filename, std::ios::out); + m_fout.open (filename, ios::out); if (! m_fout.is_open() ) { cerr << "setDebugOutputFile: can't open file " << filename << endl; } -- cgit v1.2.3