Fix compile error due to mismatched iterator types. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@277574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,7 +24,7 @@ int main()
|
|||||||
std::list<int, test_allocator<int>> d({3, 4, 5, 6}, test_allocator<int>(3));
|
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.get_allocator() == test_allocator<int>(3));
|
||||||
assert(d.size() == 4);
|
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++ == 3);
|
||||||
assert(*i++ == 4);
|
assert(*i++ == 4);
|
||||||
assert(*i++ == 5);
|
assert(*i++ == 5);
|
||||||
|
|||||||
Reference in New Issue
Block a user