Closed erikerlandson closed 10 years ago
Thanks to José Antonio Carmena Flores:
I think there can be a bug in the copy constructor. It's written this way: tree(const tree& src) { *this = src; }
But this causes problems because the _root member remains uninitialized. So I gess it should be: tree(const tree& src) : _root(NULL) { *this = src; }
Thanks to José Antonio Carmena Flores:
I think there can be a bug in the copy constructor. It's written this way: tree(const tree& src) { *this = src; }
But this causes problems because the _root member remains uninitialized. So I gess it should be: tree(const tree& src) : _root(NULL) { *this = src; }