Added the rule of 5 to cpp class snippet