initial check in
This commit is contained in:
20
constStrType.cpp
Normal file
20
constStrType.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user