Skip to main content

Practice ยท 2 of 2

Rule of Zero vs Rule of Five

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.

Difficulty: advanced

Back to lesson: Practice: noexcept and Ownership Rules