I don't remember anyone mentioning "Smart" pointers but that is probably another solution.