#include template struct A { int f ( T t ) { //T b = "valod"; printf( "%s %d\n", t, sizeof( t ) ); return sizeof( t ); } }; int main ( void ) { A o; o.f( "abc" ); return 0; }