Why does passing a const object to a templated function expecting a non-const template type argument result in a compilation error?

后端 未结 0 1116
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 16:43

Consider the following templated function:

template  class V, class T, class Allocator>
void fn(V&          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题