The-CPP-Workshop
The-CPP-Workshop copied to clipboard
Exercise61.cpp contains allocation error
The-CPP-Workshop/blob/master/Chapter08/Exercise61/Exercise61.cpp
The assignment operator does not allocate the correct amount of memory. It is 1 byte short, the null byte.
The same is true for
The-CPP-Workshop/blob/master/Chapter08/Activity08/Activity08.cpp
Hello rioj7, thank you for your patience! This is tricky for us as well. Allow us to check this with our C++ experts and get back to you ASAP!
Yes this fix is correct.