BenHanson / parsertl14

C++14 version of parsertl
32 stars 4 forks source link

Missing 'const' in parsertl::basic_rules<char, unsigned short>::validate()::accept_ #7

Closed mingodad closed 11 months ago

mingodad commented 11 months ago

Trying to replace global variables in gram_grep I found that parsertl::basic_rules<char, unsigned short>::validate()::accept_ is missing const:

-------------------------- include/parsertl/rules.hpp --------------------------
index 5bf430c..201962c 100644
@@ -664,7 +664,7 @@ namespace parsertl
                 }
             }

-            static char_type accept_[] =
+            static const char_type accept_[] =
             {
                 '$', 'a', 'c', 'c', 'e', 'p', 't', '\0'
             };
BenHanson commented 11 months ago

Done