My question is simple: if I have some class Man and I want to define member function that returns man\'s name, which of the following two variants shall I prefer?
Fi
As we have move-semantics (in C++11), you can use this:
string name();
Even in C++03, this is almost good, as the compiler might optimize this (Search for Return Value Optimization).