摘要: 原因:你把inline函数的implementation放到cpp文件里肯定要报这个错误正确的做法:把inline函数的声明和实现都放到header里,例如// declaration:return_type function_name(param_type1, param_type2, ...);... 阅读全文
posted @ 2015-04-27 16:04 rldts 阅读(1499) 评论(0) 推荐(0)
摘要: 一句话:container就用mem_fun,container就用mem_fun_ref参考:http://www.cplusplus.com/reference/functional/mem_fun/http://www.cplusplus.com/reference/functional/me... 阅读全文
posted @ 2015-04-27 08:38 rldts 阅读(350) 评论(0) 推荐(0)