Answer the question
In order to leave comments, you need to log in
Is Object(std::wstring&&) required in terms of optimization?
We have such a code.
class Object
{
public:
Object() = default;
Object(std::wstring x) : value(std::move(x)) {} // интересный механизм, предложенный статическим анализатором clang
Object(std::wstring&& x) : value(std::move(x)) {} // НУЖНО ЛИ?
private:
std::wstring value;
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question