Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2007-10-27 11:57:56


Author: nesotto
Date: 2007-10-27 11:57:56 EDT (Sat, 27 Oct 2007)
New Revision: 40507
URL: http://svn.boost.org/trac/boost/changeset/40507

Log:
updated example to new syntax
Text files modified:
   trunk/libs/range/test/algorithm_example.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/range/test/algorithm_example.cpp
==============================================================================
--- trunk/libs/range/test/algorithm_example.cpp (original)
+++ trunk/libs/range/test/algorithm_example.cpp 2007-10-27 11:57:56 EDT (Sat, 27 Oct 2007)
@@ -37,7 +37,7 @@
     }
     
     template< typename Range, typename T >
- inline typename boost::range_const_iterator<Range>::type
+ inline typename boost::range_iterator<Range>::type
     find( const Range& c, const T& value )
     {
        return std::find( boost::begin( c ), boost::end( c ), value );
@@ -47,7 +47,7 @@
     // replace first value and return its index
     //
     template< class Range, class T >
- inline typename boost::range_size<Range>::type
+ inline typename boost::range_difference<Range>::type
     my_generic_replace( Range& c, const T& value, const T& replacement )
     {
        typename boost::range_iterator<Range>::type found = find( c, value );


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