updated example to new syntax

[SVN r40507]
This commit is contained in:
Thorsten Jørgen Ottosen
2007-10-27 15:57:56 +00:00
parent 01826978d6
commit f6e555dda3

View File

@@ -37,7 +37,7 @@ namespace
} }
template< typename Range, typename T > 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 ) find( const Range& c, const T& value )
{ {
return std::find( boost::begin( c ), boost::end( c ), value ); return std::find( boost::begin( c ), boost::end( c ), value );
@@ -47,7 +47,7 @@ namespace
// replace first value and return its index // replace first value and return its index
// //
template< class Range, class T > 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 ) my_generic_replace( Range& c, const T& value, const T& replacement )
{ {
typename boost::range_iterator<Range>::type found = find( c, value ); typename boost::range_iterator<Range>::type found = find( c, value );