Avoid unnecessary string copy

This commit is contained in:
Eelco Dolstra 2022-06-02 16:48:53 +02:00
parent e7c42e55e9
commit 1dc58110fe
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -718,7 +718,7 @@ inline std::string operator + (const std::string & s1, std::string_view s2)
inline std::string operator + (std::string && s, std::string_view s2)
{
s.append(s2);
return s;
return std::move(s);
}
inline std::string operator + (std::string_view s1, const char * s2)