X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbooleanevaluator.h;h=7c2af6f1a0f9cbeb8d99d546c89d50172520e5a4;hb=c5169863e1ec3060d3bdc3b8c0317710ce8c3ee3;hp=08ed432665bd48fd6822e2215b53b3adc2d3d6ca;hpb=02097e6a1ddbffbc2217005c3c2ebba528f5248f;p=builder.git diff --git a/source/booleanevaluator.h b/source/booleanevaluator.h index 08ed432..7c2af6f 100644 --- a/source/booleanevaluator.h +++ b/source/booleanevaluator.h @@ -1,17 +1,17 @@ #ifndef BOOLEANEVALUATOR_H_ #define BOOLEANEVALUATOR_H_ +#include #include #include -#include class BooleanEvaluator { public: - typedef sigc::slot Slot; + using Function = std::function; private: - Slot slot; + Function func; std::string ops; std::vector var_stack; std::vector value_stack; @@ -19,7 +19,7 @@ private: bool last_was_op; public: - BooleanEvaluator(const Slot &, bool = true); + BooleanEvaluator(const Function &, bool = true); bool evaluate(const std::string &); private: