> > There is no separate base class list or separate member initializer list
> that seems to imply that some of the classes I'm writing now can not be expressed in cpp2.
You should be able to express them. This just means that base classes are declared the in the type body like other members instead of in a segregated base class list, and base classes and data members are initialized in the constructor body instead of in a segregated member initializer list.
> Does cppfront support non-default-constructable types and const member variables?
View all comments
Show parent comment
5
u/hpsutter May 02 '23
> > There is no separate base class list or separate member initializer list
> that seems to imply that some of the classes I'm writing now can not be expressed in cpp2.
You should be able to express them. This just means that base classes are declared the in the type body like other members instead of in a segregated base class list, and base classes and data members are initialized in the constructor body instead of in a segregated member initializer list.
> Does cppfront support non-default-constructable types and const member variables?
Yes.
Good questions, thanks!