E2477 Too few template parameters were declared for template 'template' (C++)

From RAD Studio
Jump to: navigation, search

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

If a member declaration or definition occurs outside of a template class, and that outer declaration uses a different number of template parameters than the parent class, this error will result. For example:

template<class T, class U>
class foo {
void method();
};
template<class T>
void foo<T>::method() { }// error: too few template parameters!