“too many template-parameter-lists” error when specializing a member function

谁说我不能喝 提交于 2019-11-29 03:59:37

Please read a C++ template tutorial on how to give a template multiple parameters. Instead of

template<typename A> template<typename B> void f(A a, B b);

The way it is done is

template<typename A, typename B> void f(A a, B b);

Multiple template clauses represent multiple levels of templates (class template -> member template).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!