Files
test/cpp/constStrType.cpp

21 lines
217 B
C++

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