Fix compile error in test. Can't use operator[] for multimap.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@253271 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2015-11-16 23:40:27 +00:00
parent 15a326c525
commit ffc9c61015

View File

@@ -42,7 +42,7 @@ void reserve_invariant(size_t n) // LWG #2156
size_t buckets = c.bucket_count(); size_t buckets = c.bucket_count();
for (size_t j = 0; j < i; ++j) for (size_t j = 0; j < i; ++j)
{ {
c[i] = i; c.insert(std::unordered_multimap<size_t, size_t>::value_type(i,i));
assert(buckets == c.bucket_count()); assert(buckets == c.bucket_count());
} }
} }