浏览代码

http://llvm.org/bugs/show_bug.cgi?id=10469

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@135897 91177308-0d34-0410-b5e6-96231b3b80d8
Howard Hinnant 14 年之前
父节点
当前提交
4f598034d2
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      include/ext/hash_map
  2. 2 0
      include/ext/hash_set

+ 2 - 0
include/ext/hash_map

@@ -204,7 +204,9 @@ template <class Key, class T, class Hash, class Pred, class Alloc>
 #include <functional>
 #include <stdexcept>
 
+#if __DEPRECATED
 #warning Use of the header <ext/hash_map> is deprecated.  Migrate to <unordered_map>
+#endif
 
 #pragma GCC system_header
 

+ 2 - 0
include/ext/hash_set

@@ -197,7 +197,9 @@ template <class Value, class Hash, class Pred, class Alloc>
 #include <__hash_table>
 #include <functional>
 
+#if __DEPRECATED
 #warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
+#endif
 
 namespace __gnu_cxx {