U
uvts_cvs
template <class T>
class foo
{
public:
template <class Tin>
T bar (Tin) {return T();}
};
class derived : public foo<derived>
{
};
Some compilers compile successfully, while another tells me that I'm
using the undefined class 'derived'.
Is this little chunk of code compliant with the ISO C++ standard or not?
class foo
{
public:
template <class Tin>
T bar (Tin) {return T();}
};
class derived : public foo<derived>
{
};
Some compilers compile successfully, while another tells me that I'm
using the undefined class 'derived'.
Is this little chunk of code compliant with the ISO C++ standard or not?