SW 개발/C++/MFC

타입 가져오기

Lazineer 2012. 11. 23. 16:40

#include "stdafx.h"

#include <typeinfo>

#include <iostream>

using namespace std;


template < typename T > 

void asdf( T arg1) {

   cout << typeid( T ).name() << endl;

}


int _tmain(int argc, _TCHAR* argv[])

{

int aaa= 1000;

asdf(aaa);

return 0;

}