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;