summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/statistics.hh3
-rw-r--r--src/base/stats/types.hh3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index 5d894e8e1..d8145ddc4 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -55,7 +55,6 @@
#include <cmath>
#include <functional>
#include <iosfwd>
-#include <limits>
#include <list>
#include <string>
#include <vector>
@@ -78,9 +77,7 @@ extern Tick curTick;
/* A namespace for all of the Statistics */
namespace Stats {
-typedef std::numeric_limits<Counter> CounterLimits;
-/* Contains the statistic implementation details */
//////////////////////////////////////////////////////////////////////
//
// Statistics Framework Base classes
diff --git a/src/base/stats/types.hh b/src/base/stats/types.hh
index 6f56aec9a..e561f94ad 100644
--- a/src/base/stats/types.hh
+++ b/src/base/stats/types.hh
@@ -31,6 +31,7 @@
#ifndef __BASE_STATS_TYPES_HH__
#define __BASE_STATS_TYPES_HH__
+#include <limits>
#include <vector>
#include "sim/host.hh"
@@ -42,6 +43,8 @@ typedef double Counter;
/** vector of counters. */
typedef std::vector<Counter> VCounter;
+typedef std::numeric_limits<Counter> CounterLimits;
+
/** All results are doubles. */
typedef double Result;
/** vector of results. */