summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorSergei Trofimov <sergei.trofimov@arm.com>2016-06-07 14:27:35 +0100
committerSergei Trofimov <sergei.trofimov@arm.com>2016-06-07 14:27:35 +0100
commit0257fdee9190a3935bc851e32c68465a8cb70a7d (patch)
tree68e95d4ed47e1a7332846d77fb0116a5c364c219 /src/sim
parent85997e66a08b71d701e5b41462d1cfd42660b0c7 (diff)
downloadgem5-0257fdee9190a3935bc851e32c68465a8cb70a7d.tar.xz
sim: added missing include to mathexpr.hh
mathexpr.hh uses std::function<> but was not including the appropriate header, which resulted in an error build/ARM/sim/mathexpr.hh:51:18: error: 'function' in namespace 'std' does not name a template type typedef std::function<double(std::string)> EvalCallback; This commit adds the missing include. Change-Id: I6c01d77d4354c6de838538f137a38f75f9866166 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/mathexpr.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sim/mathexpr.hh b/src/sim/mathexpr.hh
index d857fa512..6d04d2538 100644
--- a/src/sim/mathexpr.hh
+++ b/src/sim/mathexpr.hh
@@ -41,6 +41,7 @@
#define __SIM_MATHEXPR_HH__
#include <algorithm>
+#include <functional>
#include <string>
class MathExpr {