T
Tomás
I can't understand why this won't compile:
template <class T>
struct Monkey {
typedef T Normal;
};
template <class T>
int Func()
{
typedef Monkey<T>::Normal SpecialType;
SpecialType k = SpecialType();
return k;
}
int main()
{
Func<int>();
}
-Tomás
template <class T>
struct Monkey {
typedef T Normal;
};
template <class T>
int Func()
{
typedef Monkey<T>::Normal SpecialType;
SpecialType k = SpecialType();
return k;
}
int main()
{
Func<int>();
}
-Tomás