E2402 Illegal base class type formal type 'type' resolves to 'type' (C++)

From Appmethod Topics
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

When instantiating a template class definition, if it is found that a declared base class does not resolve to an accessible class type, this error will result. For example:

template<class T>
class foo : public T { };
foo<int> x;// error: "int" is not a valid base class
foo<bar> y;// error: "bar" is an unknown type