OSDN Git Service

repeat.hpp: デフォルトコンストラクタがねぇよぉー、って言われる原因、把握したので…
authormyun2 <myun2@nwhite.info>
Sat, 7 Jul 2012 13:29:25 +0000 (22:29 +0900)
committermyun2 <myun2@nwhite.info>
Sat, 7 Jul 2012 13:29:25 +0000 (22:29 +0900)
roast/include/roast/lexical2/repeat.hpp

index 6ff47c8..984b28d 100644 (file)
@@ -66,6 +66,9 @@ namespace roast
                {
                public:
                        const T t;
+                       
+                       fixed_repeat(){}
+                       fixed_repeat(const T& t_in) : t(t_in){}
 
                        //const static int length = length_of<T>::value * N;
 
@@ -88,7 +91,7 @@ namespace roast
                        //----
 
                        template <typename _Strm, typename _Document>
-                       bool generate(_Strm& strm, _Document& doc)
+                       bool generate(_Strm& strm, _Document& doc) const
                        {
                                for(unsigned int i=0; i<N; i++)
                                {