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;