E2422 Argument kind mismatch in redeclaration of template parameter 'parameter' (C++)

From RAD Studio
Jump to: navigation, search

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

If a template is declared at one point in the translation unit, and then redeclared with template parameters of a different kind at another location, this error will result. For example:

template<class T>
class foo;
// ... time passes ...
template<int T>
class foo;// error: type vs. non-type parameter