Nontype template parameter

前端 未结 3 2217
清歌不尽
清歌不尽 2021-01-06 18:21

I\'m having trouble with nontype(int variable) template parameter.
Why can\'t I pass a constant int variable to a function and let the function instantiate the template?

3条回答
提交回复
热议问题