Small problem w virtual

release/4.3a0
dellaert 2014-12-02 14:12:22 +01:00
parent 41d2783beb
commit afebf2087f
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ struct ClassGrammar: public classic::grammar<ClassGrammar> {
// parse a full class
class_p = (!(classTemplate_g[push_back_a(self.cls_.templateArgs,
self.template_.argName())] | templateList_p)
>> !(str_p("virtual")[assign_a(self.cls_.isVirtual, true)])
>> !(str_p("virtual")[assign_a(self.cls_.isVirtual, T)])
>> str_p("class") >> className_p[assign_a(self.cls_.name_)]
>> (classParent_p | '{') >> //
*(functions_p | comments_p) >> str_p("};")) //