VC++ 6.0 的函数模版解析 bug
摘要:
struct TTT1 { int x; };struct TTT2 { int x; };templatevoid foo(T1& t1, T2& t2){printf("111111111111/n");}templatevoid foo(T1& t1, TTT2& t2){printf("222222222222/n");}void foo2(){TTT1 x;TTT2 y;foo(x, y);}上述代码在 vc6 中编译会出错:error C2667: 'foo' : none of 2 overl 阅读全文
posted @ 2006-11-21 17:51 能发波 阅读(136) 评论(0) 推荐(0)