VC6 patch

[SVN r12045]
This commit is contained in:
Dave Abrahams
2001-12-13 18:24:29 +00:00
parent 409c79b2e4
commit 7bf2ad0b22
2 changed files with 3 additions and 2 deletions

View File

@@ -35,6 +35,8 @@ int main(int, char*[])
std::vector<std::vector<int>::iterator> pointers; std::vector<std::vector<int>::iterator> pointers;
// VC6 gets an internal compiler error on this
#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200)
// Use counting iterator to fill in the array of pointers. // Use counting iterator to fill in the array of pointers.
std::copy(boost::make_counting_iterator(numbers.begin()), std::copy(boost::make_counting_iterator(numbers.begin()),
boost::make_counting_iterator(numbers.end()), boost::make_counting_iterator(numbers.end()),
@@ -42,7 +44,6 @@ int main(int, char*[])
// Use indirect iterator to print out numbers by accessing // Use indirect iterator to print out numbers by accessing
// them through the array of pointers. // them through the array of pointers.
#ifndef BOOST_MSVC
std::cout << "indirectly printing out the numbers from 0 to " std::cout << "indirectly printing out the numbers from 0 to "
<< N << std::endl; << N << std::endl;
std::copy(boost::make_indirect_iterator(pointers.begin()), std::copy(boost::make_indirect_iterator(pointers.begin()),

View File

@@ -409,7 +409,7 @@ main()
{ {
// check permutation_iterator // check permutation_iterator
typedef std::vector< int > element_range_type; typedef std::deque< int > element_range_type;
typedef std::list< int > index_type; typedef std::list< int > index_type;
static const int element_range_size = 10; static const int element_range_size = 10;