From: Myun2 Date: Mon, 11 Oct 2010 06:02:16 +0000 (+0900) Subject: lexical/rule.hpp: zeroterm追加。あとまだanalyze()にtypename Tがあったので直し X-Git-Tag: 20111130_shapeup_prev~101 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=93468aa0cf9b6c54eeda634190a10ffd48f92abe;p=roast%2Froast.git lexical/rule.hpp: zeroterm追加。あとまだanalyze()にtypename Tがあったので直し --- 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