Here what is the meaning of & used? THanks.Code:std::string const & user::nickname() const { return m_data->nickname; }
This is a discussion on function that returns a constant reference within the C++ Programming forums, part of the General Programming Boards category; Code: std::string const & user::nickname() const { return m_data->nickname; } Here what is the meaning of & used? THanks....
Here what is the meaning of & used? THanks.Code:std::string const & user::nickname() const { return m_data->nickname; }
Like the title says, it means a (constant) reference.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
THX elysia