Learning objectives
What you should understand
- Separate storage duration from object lifetime
- Construct objects correctly in raw storage
- Avoid undefined behavior from alignment and aliasing
Lab
Hands-on exercise
Repair a binary-buffer example with lifetime and aliasing bugs.
Deliverable
Evidence of completion
A sanitizer-backed test and explanation of each corrected rule.
- Prerequisite
- EP 44