摘要:
最近写个小东西,遇到模板的一个报错,挺有意思的,错误代码如下1#include<iostream>2#include<set>3usingnamespacestd;45template<classT>6voidSet2Str(set<T>inset)7{8//typenameT::iteratoritset;9set<T>::iteratoritset;10}111213intmain(intargc,charconst*argv[])14{15set<int>a;16Set2Str<int>(a);1718r 阅读全文
posted @ 2011-12-11 13:55
阿笨猫
阅读(6383)
评论(0)
推荐(1)
浙公网安备 33010602011771号