From f221e878272ec9dbfa28982d31b48167f5d9fb2b Mon Sep 17 00:00:00 2001 From: myun2 Date: Mon, 11 Jun 2012 12:44:09 +0900 Subject: [PATCH] lexical2: empty_type.hpp --- roast/include/roast/lexical2/empty_type.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/roast/include/roast/lexical2/empty_type.hpp b/roast/include/roast/lexical2/empty_type.hpp index ea881862..5511f6c7 100644 --- a/roast/include/roast/lexical2/empty_type.hpp +++ b/roast/include/roast/lexical2/empty_type.hpp @@ -12,11 +12,9 @@ namespace roast { ////////////////////////////////////////////////////////////////////////////////// - class always_true : public lengthable + class empty_true : public zero_length { public: - static const int length = 0; - template bool analyze(const _It&, const _Param&) { @@ -29,14 +27,13 @@ namespace roast return true; } }; - typedef always_true _true_analyze, empty, non, nop; + typedef empty_true nop_true; //////////////////////////////////////////////////////////// - class always_false : public lengthable + class empty_false : public zero_length { public: - static const int length = 0; template bool analyze(const _It&, const _Param&) @@ -50,7 +47,7 @@ namespace roast return false; } }; - typedef always_false _false_analyze; + typedef empty_false nop_fase; ////////////////////////////////////////////////////////////////////////////////// } -- 2.11.0