When the object is not a local object, then that's fine to return a reference to it.
When we don't want the reference returned from a function to be an lvalue, we should use a reference to const
as the return type instead.
When the object is not a local object, then that's fine to return a reference to it.
When we don't want the reference returned from a function to be an lvalue, we should use a reference to const
as the return type instead.