template<class T>
struct A
{
template<class Value>
void foo() { }
};
template<class T>
void bar()
{
A<T> i;
// error: expected primary-expression before ‘>’ token
// error: expected primary-expression before ‘)’ token
i.foo<T>();
}
template<class T>
void qux()
{
A<int> i;
// No error
i.foo<T>();
}
int main()
{
return 0;
}
Edited by brownhead, 06 January 2011 - 11:35 AM.


Sign In
Create Account


Back to top









