Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72104 - in trunk/libs/range: doc/reference/adaptors/examples test
From: neil_at_[hidden]
Date: 2011-05-22 17:03:02


Author: neilgroves
Date: 2011-05-22 17:03:01 EDT (Sun, 22 May 2011)
New Revision: 72104
URL: http://svn.boost.org/trac/boost/changeset/72104

Log:
[boost][range] - Ticket 5530 - adaptor example fails to compile. This change adds tests for all of the .cpp example files for the range adaptors, and fixes a few small issues with the examples shown by the new tests.
Text files modified:
   trunk/libs/range/doc/reference/adaptors/examples/adjacent_filtered.cpp | 2 +-
   trunk/libs/range/doc/reference/adaptors/examples/indexed.cpp | 2 +-
   trunk/libs/range/doc/reference/adaptors/examples/transformed.cpp | 2 +-
   trunk/libs/range/test/Jamfile.v2 | 15 +++++++++++++++
   4 files changed, 18 insertions(+), 3 deletions(-)

Modified: trunk/libs/range/doc/reference/adaptors/examples/adjacent_filtered.cpp
==============================================================================
--- trunk/libs/range/doc/reference/adaptors/examples/adjacent_filtered.cpp (original)
+++ trunk/libs/range/doc/reference/adaptors/examples/adjacent_filtered.cpp 2011-05-22 17:03:01 EDT (Sun, 22 May 2011)
@@ -11,7 +11,7 @@
 #include <boost/range/algorithm/copy.hpp>
 #include <boost/assign.hpp>
 #include <algorithm>
-#include <functinoal>
+#include <functional>
 #include <iostream>
 #include <vector>
 

Modified: trunk/libs/range/doc/reference/adaptors/examples/indexed.cpp
==============================================================================
--- trunk/libs/range/doc/reference/adaptors/examples/indexed.cpp (original)
+++ trunk/libs/range/doc/reference/adaptors/examples/indexed.cpp 2011-05-22 17:03:01 EDT (Sun, 22 May 2011)
@@ -41,5 +41,5 @@
     display_element_and_index( input | indexed(0) );
     
     return 0;
-]
+}
 

Modified: trunk/libs/range/doc/reference/adaptors/examples/transformed.cpp
==============================================================================
--- trunk/libs/range/doc/reference/adaptors/examples/transformed.cpp (original)
+++ trunk/libs/range/doc/reference/adaptors/examples/transformed.cpp 2011-05-22 17:03:01 EDT (Sun, 22 May 2011)
@@ -9,7 +9,7 @@
 //
 #include <boost/range/adaptor/transformed.hpp>
 #include <boost/range/algorithm/copy.hpp>
-#include <boost/range/assign.hpp>
+#include <boost/assign.hpp>
 #include <algorithm>
 #include <iostream>
 #include <vector>

Modified: trunk/libs/range/test/Jamfile.v2
==============================================================================
--- trunk/libs/range/test/Jamfile.v2 (original)
+++ trunk/libs/range/test/Jamfile.v2 2011-05-22 17:03:01 EDT (Sun, 22 May 2011)
@@ -31,6 +31,21 @@
 }
 
 test-suite range :
+ [ compile ../doc/reference/adaptors/examples/adjacent_filtered.cpp : : example_adjacent_filtered ]
+ [ compile ../doc/reference/adaptors/examples/copied.cpp : : example_copied ]
+ [ compile ../doc/reference/adaptors/examples/filtered.cpp : : example_filtered ]
+ [ compile ../doc/reference/adaptors/examples/indexed.cpp : : example_indexed ]
+ [ compile ../doc/reference/adaptors/examples/indirected.cpp : : example_indirected ]
+ [ compile ../doc/reference/adaptors/examples/map_keys.cpp : : example_map_keys ]
+ [ compile ../doc/reference/adaptors/examples/map_values.cpp : : example_map_values ]
+ [ compile ../doc/reference/adaptors/examples/replaced.cpp : : example_replaced ]
+ [ compile ../doc/reference/adaptors/examples/replaced_if.cpp : : example_replaced_if ]
+ [ compile ../doc/reference/adaptors/examples/reversed.cpp : : example_reversed ]
+ [ compile ../doc/reference/adaptors/examples/sliced.cpp : : example_sliced ]
+ [ compile ../doc/reference/adaptors/examples/strided.cpp : : example_strided ]
+ [ compile ../doc/reference/adaptors/examples/tokenized.cpp : : example_tokenized ]
+ [ compile ../doc/reference/adaptors/examples/transformed.cpp : : example_transformed ]
+ [ compile ../doc/reference/adaptors/examples/uniqued.cpp : : example_uniqued ]
         [ compile-fail compile_fail/iterator_range1.cpp ]
         [ range-test adaptor_test/adjacent_filtered ]
         [ range-test adaptor_test/copied ]


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk