我是靠谱客的博主 靓丽蜗牛,这篇文章主要介绍error C2955: 'std::list' : use of class template requires template argument list ,现在分享给大家,希望可以做个参考。
I encountered a similar error when I named a parameter "list", where the compiler tried to parse "list" as std::list<T>. Renaming "vector<myClass> list" to "vector<myClass> myList" worked smashingly.
在我把一个参数命名为"list"时,碰到相似的错误。因为编译器会试图将“list”解析成“std::list<T>”。改变参数名称可以很好地解决这个问题。
最后
以上就是靓丽蜗牛最近收集整理的关于error C2955: 'std::list' : use of class template requires template argument list 的全部内容,更多相关error内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复