template<typename T> struct AClass
{
public:
template<typename T0>
static void AFunc()
{}
};
template<typename T>
void ATestFunc()
{
AClass<T>::AFunc<int>();
}
this works on other platforms, but not on the iPhone I get an error " expected primary-expression before 'int' " on the line where I call the function.
it works fine if I was to do
AClass<int>::AFunc<int>();
and it works fine if we ditch the template parameter for the function as well:
template<typename T> struct AClass
{
public:
static void AFunc()
{}
};
template<typename T>
void ATestFunc()
{
AClass<T>::AFunc();
}
Any Ideas as to why it doesn't work with the iPhone?