summaryrefslogtreecommitdiffstats
path: root/test/std/containers/unord/unord.multimap
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-11-16 23:40:27 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-11-16 23:40:27 +0000
commitffc9c61015c90702173b678d2b1b69fdbda32a17 (patch)
tree3e294789594c1fdcb1d97666c243075ef398c75e /test/std/containers/unord/unord.multimap
parent15a326c525023bc9170dc2f68c2d156386a48190 (diff)
downloadexternal_libcxx-ffc9c61015c90702173b678d2b1b69fdbda32a17.tar.gz
external_libcxx-ffc9c61015c90702173b678d2b1b69fdbda32a17.tar.bz2
external_libcxx-ffc9c61015c90702173b678d2b1b69fdbda32a17.zip
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
Diffstat (limited to 'test/std/containers/unord/unord.multimap')
-rw-r--r--test/std/containers/unord/unord.multimap/reserve.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/std/containers/unord/unord.multimap/reserve.pass.cpp b/test/std/containers/unord/unord.multimap/reserve.pass.cpp
index 5e7daf22e..388b1f67e 100644
--- a/test/std/containers/unord/unord.multimap/reserve.pass.cpp
+++ b/test/std/containers/unord/unord.multimap/reserve.pass.cpp
@@ -42,7 +42,7 @@ void reserve_invariant(size_t n) // LWG #2156
size_t buckets = c.bucket_count();
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());
}
}