F
Fender Mussel
Please could someone verify if this bug is fixed in VS 2005? (the code
should compile, but it doesn't in VC 2003)
Thanks, Stefan
template <typename DerivedT>
struct base
{
template <typename T>
DerivedT f (T const&) const
{
return DerivedT();
}
};
struct derived : public base<derived>
{
};
derived d;
// error C2027: use of undefined type 'derived'
should compile, but it doesn't in VC 2003)
Thanks, Stefan
template <typename DerivedT>
struct base
{
template <typename T>
DerivedT f (T const&) const
{
return DerivedT();
}
};
struct derived : public base<derived>
{
};
derived d;
// error C2027: use of undefined type 'derived'