void Foo1(string_view view) {
...
}
string str = "one two three";
Foo1("one two three"); // Implicitly convert char* to string_view
Foo1(str);
I wonder which constructor converts char* to string_view implicitly and which one converts the string to string_view implicitly?
I know constructor (4) convert const char* to string_view but what I passed is char*.

char*as you claim, any pointer-to-mutable is usable as a pointer-to-const (you can substitute reference for pointer there and that's also true). Theconstthere is a promise that the string view will not write to the pointed-to characters.