diff --git a/counting_iterator_example.cpp b/counting_iterator_example.cpp index 7b77992..b85188a 100644 --- a/counting_iterator_example.cpp +++ b/counting_iterator_example.cpp @@ -44,11 +44,16 @@ int main(int, char*[]) std::cout << std::endl; // Example of using counting iterator to create an array of pointers. - const int N = 7; +#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551)) + const +#endif + int N = 7; std::vector numbers; // Fill "numbers" array with [0,N) - std::copy(boost::make_counting_iterator(0), boost::make_counting_iterator(N), - std::back_inserter(numbers)); + std::copy( + boost::make_counting_iterator(0) + , boost::make_counting_iterator(N) + , std::back_inserter(numbers)); std::vector::iterator> pointers; diff --git a/indirect_iterator_example.cpp b/indirect_iterator_example.cpp index 22d1a21..d78f9f8 100644 --- a/indirect_iterator_example.cpp +++ b/indirect_iterator_example.cpp @@ -72,7 +72,7 @@ int main(int, char*[]) boost::indirect_iterator mutable_indirect_first(pointers_to_mutable_chars), mutable_indirect_last(pointers_to_mutable_chars + N); - boost::indirect_iterator const_indirect_first(pointers_to_chars), + boost::indirect_iterator const_indirect_first(pointers_to_chars), const_indirect_last(pointers_to_chars + N); std::transform(const_indirect_first, const_indirect_last,