summaryrefslogtreecommitdiff
path: root/src/cpu/rubytest
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-03-10 18:33:11 -0800
committerNathan Binkert <nate@binkert.org>2010-03-10 18:33:11 -0800
commit140785d24c27f3afddbe95c9e504e27bf8274290 (patch)
treecc4d27a7d4e417a6cd0f0364cff3db67ca1825b7 /src/cpu/rubytest
parent1badec39a94397397a3c918bfcc75c71efc507ea (diff)
downloadgem5-140785d24c27f3afddbe95c9e504e27bf8274290.tar.xz
ruby: get rid of std-includes.hh
Do not use "using namespace std;" in headers Include header files as needed
Diffstat (limited to 'src/cpu/rubytest')
-rw-r--r--src/cpu/rubytest/CheckTable.hh10
1 files changed, 6 insertions, 4 deletions
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 <iostream>
+
#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;
}