// std::string_view vv("")
// std::string ss = vv; // error
// std::string ss(vv); // error
std::string ss;
ss = std::string_view(""); // ok, 'cause operator=(const StringViewLike&) is available
Is there a rational for this? Or is it just another thing that hasn't made into the standard yet?
The premise is false as is pointed out, that an explicit constructor exists.
Now I think the benifit is that the caller of a function should know copying happens to this std::string_view
he's passing, while std::string(const char*)
is often overlooked.