From 93468aa0cf9b6c54eeda634190a10ffd48f92abe Mon Sep 17 00:00:00 2001 From: Myun2 Date: Mon, 11 Oct 2010 15:02:16 +0900 Subject: [PATCH] =?utf8?q?lexical/rule.hpp:=20zeroterm=E8=BF=BD=E5=8A=A0?= =?utf8?q?=E3=80=82=E3=81=82=E3=81=A8=E3=81=BE=E3=81=A0analyze()=E3=81=ABt?= =?utf8?q?ypename=20T=E3=81=8C=E3=81=82=E3=81=A3=E3=81=9F=E3=81=AE?= =?utf8?q?=E3=81=A7=E7=9B=B4=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- roast/include/roast/lexical/rule.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roast/include/roast/lexical/rule.hpp b/roast/include/roast/lexical/rule.hpp index df107fcb..7b9cf4e4 100644 --- a/roast/include/roast/lexical/rule.hpp +++ b/roast/include/roast/lexical/rule.hpp @@ -771,7 +771,7 @@ namespace roast static const int length = sizeof(T); template - bool analyze(T& it, _Param& param) + bool analyze(_It& it, _Param& param) { T n = *it; if ( n >= _Min && n <= _Max ) @@ -851,7 +851,7 @@ namespace roast static const int length = sizeof(T); template - bool analyze(T& it, _Param& param) + bool analyze(_It& it, _Param& param) { switch(*it) { @@ -891,7 +891,7 @@ namespace roast { public: template - bool analyze(T& it, _Param& param) + bool analyze(_It& it, _Param& param) { switch(*it) { @@ -931,6 +931,8 @@ namespace roast template class fixed_ulong : public fixed_numeric {}; + typedef unibyte<0> zeroterm; + ///////////////////////////////////////////////////////////// class illegal_terminated : public lexical_exception -- 2.11.0