Recently, "user literals" have been implemented in gcc-trunk sources. Please tell me, do I understand correctly that I cannot define "user literals" for the variational char template?
template<char... chars>
int operator"" _call() { return sizeof...(chars); }
...
std::cout << "method"_call;
Up.
I do not understand why this expression is allowed:
template<char... chars>
int operator"" _call() { return sizeof...(chars); }
...
std::cout << 12345566_call;
and this ban:
template<char... chars>
int operator"" _call() { return sizeof...(chars); }
...
std::cout << method_call;
?
What is the point?
Up. is it because of ambiguity?
Thank.
source
share