OSDN Git Service

variable.hpp 実装
authormyun2 <myun2@nwhite.info>
Wed, 13 Jun 2012 13:57:51 +0000 (22:57 +0900)
committermyun2 <myun2@nwhite.info>
Wed, 13 Jun 2012 13:57:51 +0000 (22:57 +0900)
roast/include/roast/lexical2/variable.hpp

index e41530b..53e5ae9 100644 (file)
@@ -20,19 +20,13 @@ namespace roast
                
                        /////////////////
                        
-                       /*
                        template <typename InputIterator, typename _Param>
                        bool parse(InputIterator& it, const _Param& param) const
                        {
-                               //memcmp
-                               
-                               bool ret = (*it == data);
-                               if ( ret )
-                                       it++;
-                               return ret;
-                       }*/
-
-                       //----
+                               data = *it;
+                               it++;
+                               return true;
+                       }
                        
                        template <typename OutputStream, typename _Document>
                        void generate(OutputStream& os, const _Document& doc) const
@@ -44,7 +38,7 @@ namespace roast
                ////////////////////////////////////////////////////////////////////
                
                template <typename T>
-               class fixed_ptr
+               class variable_ptr
                {
                private:
                        const unsigned int length;