Nested templates vs shift operator

后端 未结 4 2062
再見小時候
再見小時候 2020-12-19 09:31

I have been reading all around about be aware >> as ending of nested template and >> as shift operator...

Now I have tried it i

4条回答
  •  天命终不由人
    2020-12-19 10:31

    Be careful because previously good C++03 code may break with compilers supporting this feature.

    MyArray< MyArray> 2>, 5 > arrayInst;
    

    This would be the fix:

    MyArray< MyArray> 2)>, 5 > arrayInst;
    

提交回复
热议问题