后置,可以推导
template<typename T>
struct ABC
{
};
template <typename Char>
auto to_string_view2(const Char* s) ->ABC<Char> {
ABC<Char> x;
return x;
}
void main()
{
ABCTest<char> x = to_string_view2("123");
}
后置,可以推导
template<typename T>
struct ABC
{
};
template <typename Char>
auto to_string_view2(const Char* s) ->ABC<Char> {
ABC<Char> x;
return x;
}
void main()
{
ABCTest<char> x = to_string_view2("123");
}