I had a hard time debugging a crash on production. Just wanted to confirm with folks here about the semantics. We have a class like ...
class Test { public: Te
This is the same difference as between
std::string str; str = str;
and
std::string str(str);
The former works (although it's nonsense), the latter doesn't, since it tries to copy-construct an object from a not-yet-constructed object.
Of course, the way to go would be
Test() : m_str() {}