summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2019-05-31 18:39:21 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2019-06-04 22:28:54 +0000
commit0c0cf48e3082ba41005b5d0f56d377e432b9283e (patch)
treebbf0ef0dab937624847be5f63e505e590bd07a2d
parentcc6eff061c1b489c1a5f98d7fe5222837678ed2c (diff)
downloadgem5-0c0cf48e3082ba41005b5d0f56d377e432b9283e.tar.xz
base: Fix missing headers to CircularQueue
CircularQueue is currently throwing compilation errors when creating a derived class. assert() needs <cassert> ptrdiff_t needs <cstddef> (u)intX_t need <cstdint> random_access_iterator_tag needs <iterator> is_same, enable_if and others need <type_traits> Change-Id: I77a78e7b13f7a8b8e7e8b2b872065d78d1ab815a Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19089 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r--src/base/circular_queue.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/circular_queue.hh b/src/base/circular_queue.hh
index da3da8b28..22783aaa9 100644
--- a/src/base/circular_queue.hh
+++ b/src/base/circular_queue.hh
@@ -40,6 +40,11 @@
#ifndef __BASE_CIRCULAR_QUEUE_HH__
#define __BASE_CIRCULAR_QUEUE_HH__
+#include <cassert>
+#include <cstddef>
+#include <cstdint>
+#include <iterator>
+#include <type_traits>
#include <vector>
/** Circular queue.