How to fix a 'The "Rule-of-Zero" should be followed'?

A post was split to a new topic: Rule-of-Zero and RAII