Report question

Question: when does a function have to return a reference in c++