This is better explained in code. Suppose I have this:
Now I try to do this:Code:template < typename T >
class Foo
{
public:
T i;
};
class Bar : public Foo< int >
{
public:
int v;
};
Is there another way to do this?Code:Foo< int > A = Bar(); // This works fine
Foo B = Bar(); // <----------------This doesn't work!!!!