Hello
Suppose I have some class:
Is it sensible to initialize strings in this constructor (when no arguments are passed) like : m_id(0), m_str1(""), m_str2("") , etc.. or just leave as it is?Code:class someclass {
public:
someclass() : m_id(0) { }
private:
int m_id;
std::string m_str1;
std::string m_str2;
};
Thanks for help