sim: added missing include to mathexpr.hh
authorSergei Trofimov <sergei.trofimov@arm.com>
Tue, 7 Jun 2016 13:27:35 +0000 (14:27 +0100)
committerSergei Trofimov <sergei.trofimov@arm.com>
Tue, 7 Jun 2016 13:27:35 +0000 (14:27 +0100)
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>
src/sim/mathexpr.hh

index d857fa512495bad0f16d2b65eb24eb5be4e72d21..6d04d25388da2b87fc8073a121d8a83bf77d89bf 100644 (file)
@@ -41,6 +41,7 @@
 #define __SIM_MATHEXPR_HH__
 
 #include <algorithm>
+#include <functional>
 #include <string>
 
 class MathExpr {