From 2ee29b3426d2d79872fba35adbeb8d768983ffec Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Thu, 19 Apr 2012 16:21:26 +1000 Subject: Add presentation; start a different implementation --- impl/Constant.h | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 impl/Constant.h (limited to 'impl/Constant.h') diff --git a/impl/Constant.h b/impl/Constant.h deleted file mode 100644 index bab8cd9..0000000 --- a/impl/Constant.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef CONSTANT_H -#define CONSTANT_H - -#include "Expression.h" - -template -struct Constant : public Expression { - Constant(const T& value) : _value(value) { } - - T value() const { - return this->_value; - } - - T eval(const std::map&) const { - return _value; - } - - private: - const T _value; -}; - -#endif -- cgit v1.2.3