RAD Studio |  |

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

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:

Copy Code

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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!