changed int* to std::vector<int>::iterator

[SVN r9178]
This commit is contained in:
Jeremy Siek
2001-02-12 21:59:25 +00:00
parent d960e5eadd
commit 8694ce31fe
2 changed files with 4 additions and 2 deletions

View File

@@ -194,7 +194,8 @@ of pointers.
// Fill "numbers" array with [0,N)
std::copy(boost::make_counting_iterator(0), boost::make_counting_iterator(N),
std::back_inserter(numbers));
std::vector&lt;int*&gt; pointers;
std::vector&lt;std::vector&lt;int&gt;::iterator&gt; pointers;
// Use counting iterator to fill in the array of pointers.
std::copy(boost::make_counting_iterator(numbers.begin()),

View File

@@ -32,7 +32,8 @@ int main(int, char*[])
// Fill "numbers" array with [0,N)
std::copy(boost::make_counting_iterator(0), boost::make_counting_iterator(N),
std::back_inserter(numbers));
std::vector<int*> pointers;
std::vector<std::vector<int>::iterator> pointers;
// Use counting iterator to fill in the array of pointers.
std::copy(boost::make_counting_iterator(numbers.begin()),