Some C++ compilers accept this code and others not.Code:
template <class T> class b
{
T v;
... // code here
};
int main()
{
b<b<int>> *C;
...
}
Can somebody give me an alternative to my code or some sugestions ?
Printable View
Some C++ compilers accept this code and others not.Code:
template <class T> class b
{
T v;
... // code here
};
int main()
{
b<b<int>> *C;
...
}
Can somebody give me an alternative to my code or some sugestions ?
In the current C++ standard, that ">>" should be seen as a right-shift operator, not as two ">"s. I believe in the next standard, that will be valid syntax, but right now, you should have to use "> >".Code:b<b<int>> *C;