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, class U, class V> void foo<T, U, V>::method() { }// error: too many parameters!
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|