Here is what I did. Although the code output below is implementation specific, it provides a good hint many times over the type T we are dealing with.
template<typename T>
struct X {
X(){
cout << typeid(T).name();
}
};
int main()
{
X<int()> x;
cout << typeid(int()).name() << endl;
}
Output to VC ++ -
int __cdecl (void)
int __cdecl (void)
source
share