C++ having both pointers and references is such a belt-and-suspenders kind of solution.