intiating lists in the constructor's initialization list
- by bks
i just moved from C to C++, and now work with lists.
i have a class called "message", and i need to have a class called "line",
which should have a list of messages in its properties. as i learned, the object's properties should be initialized in the constructor's initialization list, and i had the "urge" to initialize the messages list in addition to the rest of the properties (some strings and doubles). is that "urge" justified? does the list need to be initialized?
thank you in advance