I create the simple template structure like this
#include <iostream>
template <class info>
struct box
{
info data;
};
int main()
{
box<int> b1;
b1.data = 1;
std::cout<<b1.data;
return 0;typedef box square;
}
Now i want to use the typedef for this template structure.
I could not figure out the syntax...
as i tried
typedef box square;
But i didn't workout... Please help me..:'(