Why can't I just return the string in my query function?
I'm not sure why I can just return the string in this query function

string
string&getTitle()class Person
{
private:
string m_name;
public:
const string& getName() const { return m_name; }
};