Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 226 Bytes

6.31.md

File metadata and controls

3 lines (2 loc) · 226 Bytes

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.