Rule of three (C++)