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
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|