Skip to main content

Practice ยท 2 of 2

Rule of Zero vs Rule of Five

CHALLENGE
Difficulty: advanced+25 XP

Config0 already obeys the Rule of Zero โ€” leave it alone. Implement all five special members of Lease over its owning int*: deep copy, guarded assignment, noexcept steals.

Back to lesson: Practice: noexcept and Ownership Rules