From 970e28f571ccf23f155e8e0f107b888a1321f32f Mon Sep 17 00:00:00 2001 From: myun2 Date: Wed, 13 Jun 2012 22:57:51 +0900 Subject: [PATCH] =?utf8?q?variable.hpp=20=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- roast/include/roast/lexical2/variable.hpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/roast/include/roast/lexical2/variable.hpp b/roast/include/roast/lexical2/variable.hpp index e41530be..53e5ae9a 100644 --- a/roast/include/roast/lexical2/variable.hpp +++ b/roast/include/roast/lexical2/variable.hpp @@ -20,19 +20,13 @@ namespace roast ///////////////// - /* template bool parse(InputIterator& it, const _Param& param) const { - //memcmp - - bool ret = (*it == data); - if ( ret ) - it++; - return ret; - }*/ - - //---- + data = *it; + it++; + return true; + } template void generate(OutputStream& os, const _Document& doc) const @@ -44,7 +38,7 @@ namespace roast //////////////////////////////////////////////////////////////////// template - class fixed_ptr + class variable_ptr { private: const unsigned int length; -- 2.11.0