OSDN Git Service

seq.hpp, string.hpp: generate() に const ついてない所に
authorMyun2 <myun2@nwhite.info>
Thu, 24 May 2012 17:45:58 +0000 (02:45 +0900)
committerMyun2 <myun2@nwhite.info>
Thu, 24 May 2012 17:45:58 +0000 (02:45 +0900)
roast/include/roast/lexical/rule/seq.hpp
roast/include/roast/lexical/rule/string.hpp

index 5f7bc43..f54aa7a 100644 (file)
@@ -297,7 +297,7 @@ namespace roast
                                }
                                
                                template <typename _Strm, typename _Document>
-                               bool generate(_Strm& strm, _Document& doc)
+                               bool generate(_Strm& strm, _Document& doc) const
                                {
                                        /*
                                        T0 t0;
@@ -340,7 +340,7 @@ namespace roast
                                }
                                
                                template <typename _Strm, typename _Document>
-                               bool generate(_Strm& strm, _Document& doc)
+                               bool generate(_Strm& strm, _Document& doc) const
                                {
                                        T1 t1;
                                        if ( t1.generate(strm, doc) == false )
index 88eab75..2ff7c2f 100644 (file)
@@ -49,7 +49,7 @@ namespace roast
                                        return true;
                                }
                                
-                               operator const char*(){ return m_str.c_str(); }
+                               operator const char*() const { return m_str.c_str(); }
                        };
                        /////
                        class string : public string_<chars::null>