mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
Don't initialize an insert_iterator with a singular iterator
From-SVN: r68729
This commit is contained in:
parent
20929c7f42
commit
d147b75b92
@ -1,3 +1,8 @@
|
||||
2003-06-30 Doug Gregor <dgregor@apple.com>
|
||||
|
||||
* testsuite/24_iterators/insert_iterator.cc (test01, test02):
|
||||
Don't initialize an insert_iterator with a singular iterator.
|
||||
|
||||
2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
|
||||
|
@ -29,7 +29,7 @@ void test01()
|
||||
|
||||
// Check for required base class.
|
||||
list<int> l;
|
||||
list<int>::iterator li;
|
||||
list<int>::iterator li = l.begin();
|
||||
|
||||
typedef insert_iterator<list<int> > test_iterator;
|
||||
typedef iterator<output_iterator_tag, void, void, void, void> base_iterator;
|
||||
@ -55,7 +55,7 @@ void test02()
|
||||
typedef std::insert_iterator<std::list<int> > iterator_type;
|
||||
|
||||
std::list<int> li;
|
||||
std::list<int>::iterator liit;
|
||||
std::list<int>::iterator liit = li.begin();
|
||||
iterator_type it01(li, liit);
|
||||
iterator_type it02 = std::inserter(li, liit);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user