Skip to main content

Practice ยท 3 of 3

A const rvalue cannot be moved from

Implement std::string concat(const std::string& a, const std::string& b) returning the concatenation **by value**, and std::string sabotage(const std::string&& a, const std::string&& b) that must still produce a + b even though its parameters are const rvalues.

Difficulty: advanced

Back to lesson: Practice: Predict the Category