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<bool> in different files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2003-07-25 14:06:13 +00:00
parent a259c9be2a
commit 7f90b520b4
2 changed files with 8 additions and 0 deletions

View File

@ -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 <vector>
#include <Support/HashExtras.h>
#endif

View File

@ -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 <vector>
#include <Support/HashExtras.h>
#endif