今天遇到了 模板函数的链接错误,特此总结一下模板函数

1.  在c++的base class中定义的模板函数,需要将定义实现在头文件中,否则 derived class 在链接过程中会出现 找不到符号链接 error 2009。

 

posted on 2017-03-29 17:41  wox  阅读(58)  评论(0)    收藏  举报