changeset 76d0e456a9a9 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=76d0e456a9a9
description:
        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 <[email protected]>
        Reviewed-by: Nikos Nikoleris <[email protected]>

diffstat:

 src/sim/mathexpr.hh |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 6e143fd2cabf -r 76d0e456a9a9 src/sim/mathexpr.hh
--- a/src/sim/mathexpr.hh       Mon Jun 06 17:16:44 2016 +0100
+++ b/src/sim/mathexpr.hh       Tue Jun 07 14:27:35 2016 +0100
@@ -41,6 +41,7 @@
 #define __SIM_MATHEXPR_HH__
 
 #include <algorithm>
+#include <functional>
 #include <string>
 
 class MathExpr {
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to