摘要:
让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 阅读全文
公告
积分与排名
- 积分 - 249275
- 排名 - 4380
最新评论
- 1. Re:在 Asp.NET MVC 中使用 SignalR 实现推送功能
- @怪才博士 Install-Package Microsoft.AspNet.SignalR...
- --全部木大木大木大
- 2. Re:在 Asp.NET MVC 中使用 SignalR 实现推送功能
- @怪才博士 @怪才博士 Clients.All.addSomeMessage(clientName, message);...
- --全部木大木大木大
- 3. Re:在 Asp.NET MVC 中使用 SignalR 实现推送功能
- @Czhipu 兄弟你这个进不去...
- --全部木大木大木大
- 4. Re:[深入理解C++(二)]理解接口继承规则
- 好棒
- --Thor_one
- 5. Re:[深入浅出Cocoa]iOS网络编程之Socket
- 好文章,赞一个👍
- --“流离”