Templates and header files: unsurprisingly, no linkage error is found

后端 未结 0 1944
时光说笑
时光说笑 2021-01-21 07:18

Reading several questions like this one, it turns out that we have a linkage error if we do this way:

In a header file .h

template 

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