偏特化的一种奇怪现象
摘要:首先定义一个模板类tamplate <typename T> class A{ void foo() {} voif bar(){} } ;下面是一个偏特化版本tamplate <> class A <int>{ void foo() {}} ;然后如果我们这么调用,就会失败A <int> a;a.bar()编译器会说bar没有实现而如果 我们...
阅读全文
posted @ 2009-04-26 13:03
posted @ 2009-04-26 13:03
posted @ 2009-04-19 21:48
posted @ 2009-04-17 00:13
posted @ 2009-04-11 10:11
posted @ 2009-04-07 23:12
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
23 | 24 | 25 | 26 | 27 | 28 | 1 | |||
2 | 3 | 4 | 5 | 6 | 7 | 8 | |||
9 | 10 | 11 | 12 | 13 | 14 | 15 | |||
16 | 17 | 18 | 19 | 20 | 21 | 22 | |||
23 | 24 | 25 | 26 | 27 | 28 | 29 | |||
30 | 31 | 1 | 2 | 3 | 4 | 5 |
怎么什么都没有,github上的这个编译不过~
在中里可以做
大佬这篇经验对我也有用
Powered by:
博客园
Copyright © 2025 cutepig
Powered by .NET 9.0 on Kubernetes