Sir*_*sto 4 c++ templates decltype string-literals
template<typename T>
class X;
int main() {
X<decltype("")> x;
}
Run Code Online (Sandbox Code Playgroud)
为什么G ++演绎T的const char (&)[1],而不是简单const char[1]?
| 归档时间: |
|
| 查看次数: |
88 次 |
| 最近记录: |