From 7bf2ad0b22332d06822a58a3174b2be5f51f3271 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 13 Dec 2001 18:24:29 +0000 Subject: [PATCH] VC6 patch [SVN r12045] --- counting_iterator_example.cpp | 3 ++- iterator_adaptor_test.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/counting_iterator_example.cpp b/counting_iterator_example.cpp index 4841a3c..8174b2f 100644 --- a/counting_iterator_example.cpp +++ b/counting_iterator_example.cpp @@ -35,6 +35,8 @@ int main(int, char*[]) std::vector::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. std::copy(boost::make_counting_iterator(numbers.begin()), boost::make_counting_iterator(numbers.end()), @@ -42,7 +44,6 @@ 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()), diff --git a/iterator_adaptor_test.cpp b/iterator_adaptor_test.cpp index 3bc6b96..ef95b7a 100644 --- a/iterator_adaptor_test.cpp +++ b/iterator_adaptor_test.cpp @@ -409,7 +409,7 @@ main() { // check permutation_iterator - typedef std::vector< int > element_range_type; + typedef std::deque< int > element_range_type; typedef std::list< int > index_type; static const int element_range_size = 10;