From 140785d24c27f3afddbe95c9e504e27bf8274290 Mon Sep 17 00:00:00 2001 From: Nathan Binkert 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/cpu/rubytest/CheckTable.hh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/cpu/rubytest') diff --git a/src/cpu/rubytest/CheckTable.hh b/src/cpu/rubytest/CheckTable.hh index 23726d26b..8b05e6541 100644 --- a/src/cpu/rubytest/CheckTable.hh +++ b/src/cpu/rubytest/CheckTable.hh @@ -31,6 +31,8 @@ #ifndef CHECKTABLE_H #define CHECKTABLE_H +#include + #include "mem/ruby/common/Global.hh" #include "mem/gems_common/Vector.hh" @@ -57,7 +59,7 @@ public: // bool isTableFull() const; // Need a method to select a check or retrieve a check - void print(ostream& out) const; + void print(std::ostream& out) const; private: // Private Methods void addCheck(const Address& address); @@ -75,16 +77,16 @@ private: }; // Output operator declaration -ostream& operator<<(ostream& out, const CheckTable& obj); +std::ostream& operator<<(std::ostream& out, const CheckTable& obj); // ******************* Definitions ******************* // Output operator definition extern inline -ostream& operator<<(ostream& out, const CheckTable& obj) +std::ostream& operator<<(std::ostream& out, const CheckTable& obj) { obj.print(out); - out << flush; + out << std::flush; return out; } -- cgit v1.2.3