From 7b199b7b453324e82ee3fedcb4515332b51932e2 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 13 Jan 2004 15:45:17 +0000 Subject: [PATCH] merged from trunk [SVN r21680] --- example/Jamfile | 14 +++++++++++++- example/reverse_iterator.cpp | 6 ++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/example/Jamfile b/example/Jamfile index 921ff30..6eb6cc7 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -1 +1,13 @@ -unit-test ia1 : reverse_iterator.cpp : ../../.. $(BOOST) ; \ No newline at end of file +subproject libs/iterator/example ; + +import testing ; + +# Make tests run by default. +DEPENDS all : test ; + +test-suite iterator_examples + : [ run reverse_iterator.cpp ] + [ run node_iterator1.cpp ] + [ run node_iterator2.cpp ] + [ run node_iterator3.cpp ] + ; diff --git a/example/reverse_iterator.cpp b/example/reverse_iterator.cpp index ffe6e3d..522cb9f 100644 --- a/example/reverse_iterator.cpp +++ b/example/reverse_iterator.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -7,9 +7,7 @@ int main() { int x[] = { 1, 2, 3, 4 }; - boost::reverse_iterator - , std::ptrdiff_t> first(x + 4), last(x); + boost::reverse_iterator first(x + 4), last(x); std::copy(first, last, std::ostream_iterator(std::cout, " ")); std::cout << std::endl; return 0;