摘要: 让gcc支持成员函数模板的trick 同样的代码在 VS2010 中编译运行是没有问题的,但在 gcc 4.7.3下,编译都通不过: ../src/MemFunTemplate.h:21:14: error: explicit specialization in non-namespace scope ‘struct Functor’ ../src/MemFunTemplate.h:22:24: error: template-id ‘function’ in declaration of primary template ../src/MemFunTemplate.h:26:14: error: explicit specialization in non-namespace scope ‘struct Functor’ ../src/MemFunTemplate.h:26:38: error: template-id ‘function’ in declaration of primary template ../src/MemFunTempla 阅读全文
posted @ 2013-07-12 21:59 飘飘白云 阅读(1957) 评论(0) 推荐(1) 编辑
本博客遵循 Creative Commons License “署名-非商业用途-保持一致”创作共用协议。 与我联系