Eval: C++11

This commit is contained in:
Paul Beckingham
2016-02-03 20:30:57 -05:00
parent 96f04ffc25
commit 197b440cc2
2 changed files with 4 additions and 14 deletions

View File

@@ -36,9 +36,6 @@ class Eval
{
public:
Eval ();
Eval (const Eval&); // Not implemented.
Eval& operator= (const Eval&); // Not implemented.
bool operator== (const Eval&); // Not implemented.
void addSource (bool (*fn)(const std::string&, Variant&));
void evaluateInfixExpression (const std::string&, Variant&) const;
@@ -69,13 +66,9 @@ private:
std::string dump (std::vector <std::pair <std::string, Lexer::Type>>&) const;
private:
std::vector <bool (*)(const std::string&, Variant&)> _sources;
bool _debug;
std::vector <std::pair <std::string, Lexer::Type>> _compiled;
std::vector <bool (*)(const std::string&, Variant&)> _sources {};
bool _debug {false};
std::vector <std::pair <std::string, Lexer::Type>> _compiled {};
};
#endif
////////////////////////////////////////////////////////////////////////////////