diff options
author | Gabe Black <gabeblack@google.com> | 2018-02-03 22:25:14 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-02-05 22:16:54 +0000 |
commit | d5b9ffda458c0e1b7ad52b42d7c8caf2b4a5c022 (patch) | |
tree | 5d3b7364d285c1990aa42278c63a30545f366f3b | |
parent | 5f9795a4e0b4dd7dd7ec758ab8c58a4b423856db (diff) | |
download | gem5-d5b9ffda458c0e1b7ad52b42d7c8caf2b4a5c022.tar.xz |
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 <jungma@eit.uni-kl.de>
Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r-- | src/base/bitunion.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/base/bitunion.hh b/src/base/bitunion.hh index 38d10dac3..569d65031 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 @@ using BitUnionBaseType = typename BitfieldBackend::BitUnionBaseType<T>::Type; namespace std { template <typename T> - struct hash; - - template <typename T> struct hash<BitUnionType<T> > : public hash<BitUnionBaseType<T> > { size_t |