摘要: 声明template参数时,前缀关键词class和typename可互换。也就是说以下两个没有区别:(1)templateclass Widget;(2)templateclass Widget。然而C++并不总是把class和typename视为等价。有时一定得使用typename。这种时机就是:... 阅读全文
posted @ 2012-08-29 20:33 wangicter的博客 阅读(175) 评论(0) 推荐(0) 编辑