X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGExpression.hxx;h=2cfa3dc8909d629959816210282535f3be13f37c;hb=b2c3a90adfb6c0285d02355fd8ab061b7f2f1e6c;hp=193dbbca86a86e4173fa5b61a35a8f0c57194a70;hpb=2af78a38740840a7be9c7fbfe244de88d8e3de8c;p=simgear.git diff --git a/simgear/structure/SGExpression.hxx b/simgear/structure/SGExpression.hxx index 193dbbca..2cfa3dc8 100644 --- a/simgear/structure/SGExpression.hxx +++ b/simgear/structure/SGExpression.hxx @@ -26,7 +26,8 @@ #include #include #include - +#include + #include #include #include @@ -949,7 +950,7 @@ namespace simgear { struct ParseError : public sg_exception { - ParseError(const string& message = std::string()) + ParseError(const std::string& message = std::string()) : sg_exception(message) {} }; @@ -1014,7 +1015,7 @@ namespace simgear { public: size_t addBinding(const std::string& name, expression::Type type); - bool findBinding(const string& name, VariableBinding& result) const; + bool findBinding(const std::string& name, VariableBinding& result) const; std::vector bindings; }; @@ -1031,7 +1032,7 @@ namespace simgear ParserMap& map = getParserMap(); ParserMap::iterator itr = map.find(exp->getName()); if (itr == map.end()) - throw ParseError(string("unknown expression ") + exp->getName()); + throw ParseError(std::string("unknown expression ") + exp->getName()); exp_parser parser = itr->second; return (*parser)(exp, this); }