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. --- Constant.h | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Constant.h (limited to 'Constant.h') diff --git a/Constant.h b/Constant.h deleted file mode 100644 index bab8cd9..0000000 --- a/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