Gabe Black has submitted this change and it was merged. ( https://gem5-review.googlesource.com/7781 )

Change subject: base: Update #includes for bitunion.hh.
......................................................................

base: Update #includes for bitunion.hh.

<iostream> isn't actually used anywhere in bitunion.hh. The templated
hash struct type is defined in <functional> and should be included
explicitly.

Change-Id: I8691ccb2f9e28a01610ae8bb4d9591b07cb7320b
Reviewed-on: https://gem5-review.googlesource.com/7781
Reviewed-by: Matthias Jung <jun...@eit.uni-kl.de>
Maintainer: Gabe Black <gabebl...@google.com>
---
M src/base/bitunion.hh
1 file changed, 1 insertion(+), 4 deletions(-)

Approvals:
  Matthias Jung: Looks good to me, approved
  Gabe Black: Looks good to me, approved



diff --git a/src/base/bitunion.hh b/src/base/bitunion.hh
index 38d10da..569d650 100644
--- a/src/base/bitunion.hh
+++ b/src/base/bitunion.hh
@@ -31,7 +31,7 @@
 #ifndef __BASE_BITUNION_HH__
 #define __BASE_BITUNION_HH__

-#include <iostream>
+#include <functional>
 #include <type_traits>

 #include "base/bitfield.hh"
@@ -404,9 +404,6 @@
 namespace std
 {
     template <typename T>
-    struct hash;
-
-    template <typename T>
     struct hash<BitUnionType<T> > : public hash<BitUnionBaseType<T> >
     {
         size_t

--
To view, visit https://gem5-review.googlesource.com/7781
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I8691ccb2f9e28a01610ae8bb4d9591b07cb7320b
Gerrit-Change-Number: 7781
Gerrit-PatchSet: 3
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-Reviewer: Gabe Black <gabebl...@google.com>
Gerrit-Reviewer: Matthias Jung <jun...@eit.uni-kl.de>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to