for constructor call instead of {} ?
You deleted the constructor, with no constructor declared, {} defaults to piecewise initialization, () does not
Did you mean it initializes all data members of the class that way? Also, why it didn't work when I define a private member in the class?
Because you would not be able to initialize it from the initializer, you would have to use a constructor in that case
Обсуждают сегодня