RAD Studio |  |

E2435: Too many template parameter sets were specified (C++)

If a member template is being defined outside of its parent class, and too many template parameter sets are declared, this error will result. For example:

Copy Code

    template<class T>
    class foo
    {
    template<class U>
    void method(U a);
    };
    template<class T> template<class U> template<class V>
    void foo<T>::method(U a);// error: too many parameter sets!

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