From 7f90b520b48d4bafe2f481c60f55fa8499969998 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Fri, 25 Jul 2003 14:06:13 +0000 Subject: [PATCH] Include vector into these two files to ensure that specializations like stl_bvector.h are correctly included into *anything* that includes hash_map or hash_set. ext/hash_map includes stl_vector.h directly and leaves out the specializations, causing truly nasty bugs due to inconsistent versions of vector<> being used for vector in different files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7303 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/hash_map | 4 ++++ include/Support/hash_set | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/Support/hash_map b/include/Support/hash_map index ce4c42f6ab9..72d8bf36ba5 100644 --- a/include/Support/hash_map +++ b/include/Support/hash_map @@ -42,6 +42,10 @@ using HASH_NAMESPACE::hash_map; using HASH_NAMESPACE::hash_multimap; using HASH_NAMESPACE::hash; +/* Include vector because ext/hash_map includes stl_vector.h and leaves + out specializations like stl_bvector.h, causing link conflicts. */ +#include + #include #endif diff --git a/include/Support/hash_set b/include/Support/hash_set index 045083c8cd5..46e75d8b94f 100644 --- a/include/Support/hash_set +++ b/include/Support/hash_set @@ -41,6 +41,10 @@ using HASH_NAMESPACE::hash_set; using HASH_NAMESPACE::hash; +/* Include vector because ext/hash_set includes stl_vector.h and leaves + out specializations like stl_bvector.h, causing link conflicts. */ +#include + #include #endif