Fix compile error due to mismatched iterator types. Patch from STL@microsoft.com
authorEric Fiselier <eric@efcs.ca>
Wed, 3 Aug 2016 05:50:03 +0000 (05:50 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 3 Aug 2016 05:50:03 +0000 (05:50 +0000)
llvm-svn: 277574

libcxx/test/std/containers/sequences/list/list.cons/initializer_list_alloc.pass.cpp

index 72add79..6040c64 100644 (file)
@@ -24,7 +24,7 @@ int main()
     std::list<int, test_allocator<int>> d({3, 4, 5, 6}, test_allocator<int>(3));
     assert(d.get_allocator() == test_allocator<int>(3));
     assert(d.size() == 4);
-    std::list<int>::iterator i = d.begin();
+    std::list<int, test_allocator<int>>::iterator i = d.begin();
     assert(*i++ == 3);
     assert(*i++ == 4);
     assert(*i++ == 5);