“too many template-parameter-lists” error when specializing a member function
I would like to define some template member methods inside a template class like so: template <typename T> class CallSometing { public: void call (T tObj); // 1st template <typename A> void call (T tObj, A aObj); // 2nd template <typename A> template <typename B> void call (T tObj, A aObj, B bObj); // 3rd }; template <typename T> void CallSometing<T>::call (T tObj) { std::cout << tObj << ", " << std::endl; } template <typename T> template <typename A> void CallSometing<T>::call (T tObj, A aObj) { std::cout << tObj << ", " << aObj << std::endl; } template <typename T> template <typename A>