rel*_*xxx 6 c++ templates bit-shift visual-studio-2010
我一直在阅读关于>>嵌套模板和>>移位运算符的结束...
现在我已经在我的MSVS2010中尝试过了,没有问题.
std::map<int, std::pair<int, int>> m;
这段代码正是我想要的(对的映射),但我应该得到一些错误 >>
这些天编译器更聪明?
要小心,因为之前很好的C++ 03代码可能会破坏支持此功能的编译器.
MyArray< MyArray<int, 16 >> 2>, 5 > arrayInst;
Run Code Online (Sandbox Code Playgroud)
这将是修复:
MyArray< MyArray<int, (16 >> 2)>, 5 > arrayInst;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1570 次 |
| 最近记录: |