admin管理员组

文章数量:1576365

https://www.runoob/cplusplus/cpp-templates.html

问题:
warning: instantiation of function ‘CRingBuffer::setBufferSize’ required here, but no definition is available

解决:定义模板函数的时候,如果定义和声明不同时在头文件中,就会报此警告。需要都定义在头文件中。
参考链接:warning: instantiation of function’ required here, but no definition is available
https://wwwblogs/judes/p/13283429.html

本文标签: 模板