C++11版本不能使用一个单行命名空间方式特化一个函数的bug
2024-10-21 01:28:19
warning: specialization of ‘template<class _Iterator> struct std::iterator_traits’ in different namespace [-fpermissive]
template<> class std::iterator_traits<Token_ptr>{
public:
typedef Word difference_type;
typedef Word value_type;
typedef Token_ptr pointer;
typedef Word& reference ;
typedef std::bidirectional_iterator_tag iterator_category ;
};
While everything works correctly, does any body know what exactly means and why is issued the warning. ( g++ issues the warning while clang++ doesn't ).
https://stackoverflow.com/questions/25594644/warning-specialization-of-template-in-different-namespace
// gcc编译器处理模板特化的一个bug,必须此处用不能用单行命名空间,只能用大括号的命名空间
最新文章
- web服务器选择Apache还是Nginx
- python基础——单元测试
- Mysql 中有关日期的函数(sql)
- Sprint第二个冲刺(第十一天)
- poj2429 大数分解+dfs
- MySQL二进制日志的备份和恢复
- (3)TXT转为XML
- 转 Problem: AnyConnect was not able to establish a connection to the specified secu
- hdu--1421--dp--搬寝室
- Go语言中slice使用注意事项
- HTML5的学习(二)HTML5标签
- java学习第四周
- bzoj4129 Haruna’s Breakfast 莫队
- C# 获取textbox行数
- 微信小程序开发笔记2,底部导航栏tablebar
- Python学习---Python的异步IO[all]
- python学习笔记2-字符串操作
- Guava 源码分析之 Beta, GwtCompatible, GwtIncompatible, Charset, HashCode
- SICP 习题 (2.8) 解题总结:区间的减法
- Deep learning for visual understanding: A review