I have a C++ question. In the article, the author writes the Person constructor this way:
Person(std::string first_name, std::string last_name)
: first_name(std::move(first_name))
, last_name(std::move(last_name))
{}
For string parameters, do you need to use std::move()? Won't the compiler do that anyway?And does anybody really put the comma separating initializers at the start of the line? Yuck.