It should be OK even to leave it as it is. All I'm saying is that it can surprise you one day, so just be careful with functions/methods returning constant references. It won't cause problems until someone tries to capture temporary object by constant reference.