one more function template bug in VC 2003

  • Thread starter Thread starter Fender Mussel
  • Start date Start date
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'
 
Back
Top