摘要: 总的结论: 将template function 或者 template class的完整定义直接放在.h文件中,然后加到要使用这些template function的.cpp文件中。1. 现象描述 类似于参考文献[1],当我们以如下方式使用模板函数时,会出现模板函数声明、定义分离带来的链接错误:... 阅读全文
posted @ 2014-07-10 20:37 jiayouwyhit 阅读(3621) 评论(0) 推荐(2) 编辑
摘要: 以下是转载于网上的一个很好的config文件的实现,留存以备案 1 //Config.h 2 #pragma once 3 4 #include 5 #include 6 #include 7 #include 8 #include 9 10 11 /* 12 * ... 阅读全文
posted @ 2014-07-10 19:55 jiayouwyhit 阅读(455) 评论(1) 推荐(0) 编辑