I am novice in the template programming.
What is the problem in this simple function?
template<class T>
void myFunction()
{
    basic_string<T>::size_type i = 0;
}
I cannot compile it?!
Changing class to typename does not solve the problem?
I am novice in the template programming.
What is the problem in this simple function?
template<class T>
void myFunction()
{
    basic_string<T>::size_type i = 0;
}
I cannot compile it?!
Changing class to typename does not solve the problem?
Use 'typename' keyword
typename basic_string<T>::size_type i = 0;
Suggested Reading :Where and why do I have to put the “template” and “typename” keywords?