Please consider this code:
#include template void f(T x) { std::cout << sizeof(T) << \'\\n\'; } int main
Depending on your use case, you can work around that using references:
template void f(const T& x) { std::cout << sizeof(T); } char a[27]; f(a);
That prints 27, as desired.
27