Week 9 Class 17 Thu Mar 13 Posted: Mar 13
After Class
Announcements
Project 2 Scores
Agenda
Exercise 52: Lambda
Follow along in your commits as we explore what we can get from the context of the lambda definition.
Exercise 49: Convert II
We did not get to this, so it is delayed again.
Following my example in class as we rearrange the concerns in the file to separate them.
Exercise 54: Memory
The file Memory.cpp in the repository Memory contains many memory resource problems described in the notes.
Compile and run the program on your platform (i.e., your compiler and operating system). You may or may not see a memory-related issue during the build and run.
Go to a system where you can run valgrind. Following the instructions in the Guide: Valgrind, compile and run valgrind on the program.
Fix the memory resource problems in Memory.cpp without using std::unique_ptr. Do this for each section one by one committing each section separately. Get the code to the point where it compiles and runs successfully, and you have a clean Valgrind run.
Once done, tag this in Git as memoryfixed.
Unless otherwise noted, exercises are due by 4:30 pm on Mon, Mar 17 Wed, Mar 19.