Made these actually compile

[SVN r11378]
This commit is contained in:
Dave Abrahams
2001-10-12 22:22:42 +00:00
parent 686f822dea
commit e01de59cdd
3 changed files with 8 additions and 6 deletions

View File

@@ -42,12 +42,13 @@ int main(int, char*[])
// Use indirect iterator to print out numbers by accessing
// them through the array of pointers.
#ifndef BOOST_MSVC
std::cout << "indirectly printing out the numbers from 0 to "
<< N << std::endl;
std::copy(boost::make_indirect_iterator(pointers.begin()),
boost::make_indirect_iterator(pointers.end()),
std::ostream_iterator<int>(std::cout, " "));
std::cout << std::endl;
#endif
return 0;
}