why does the array decay to a pointer in a template function

前端 未结 5 915
抹茶落季
抹茶落季 2020-12-16 04:24

I don\'t understand why the array decays to a pointer in a template function.

If you look at the following code: When the parameter is forced to be a reference (fun

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