The-CPP-Workshop icon indicating copy to clipboard operation
The-CPP-Workshop copied to clipboard

Exercise61.cpp contains allocation error

Open rioj7 opened this issue 5 years ago • 2 comments

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

rioj7 avatar Feb 14 '20 12:02 rioj7

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!

PacktSupport avatar Jan 06 '21 14:01 PacktSupport

Yes this fix is correct.

AndyDentFree avatar Jan 22 '21 14:01 AndyDentFree