The following is not working:
template<class charT, class traits = std::char_traits<charT> >
void f(std::basic_string_view<charT, traits> sv) {
}
int main(){
std::basic_string_view sv = "no";//ok
std::basic_string_view svw = L"shit";//ok
f("sherlock");//not ok
}
I want to use the deduction guide (implicit or otherwise) of basic_string_view
in the function f
. How is that possible ?