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