From 5d7252681da3b26845fc4e5dcf0b0e94ed9fabb1 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 6 Apr 2012 14:02:26 +1000 Subject: Move everything into impl/ and add a Makefile. --- Max.h | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Max.h (limited to 'Max.h') diff --git a/Max.h b/Max.h deleted file mode 100644 index b3b5d65..0000000 --- a/Max.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef MAX_H -#define MAX_H - -#include "Expression.h" - -template -struct Max : public Expression { - Max(Expression* left, Expression* right) - : _left(left), _right(right) { } - - T eval(const std::map& mappings) const { - T left = _left->eval(mappings); - T right = _right->eval(mappings); - return left < right ? right : left; - } - - private: - Expression* _left; - Expression* _right; -}; - -#endif -- cgit v1.2.3