v2 upgrade

[SVN r34011]
This commit is contained in:
Thorsten Jørgen Ottosen
2006-05-18 19:17:04 +00:00
parent 1ac9efbd6a
commit dc96b440be
10 changed files with 136 additions and 125 deletions

View File

@ -25,7 +25,7 @@
// Generic range algorithm
//
template< class Rng >
typename boost::range_result_iterator<Rng>::type foo_algo( Rng& r )
typename boost::range_iterator<Rng>::type foo_algo( Rng& r )
{
//
// This will only compile for Rng = UDT if the qualified calls
@ -57,32 +57,28 @@ namespace Foo
// to be defined because X defines the proper set of
// nested types.
//
inline X::iterator boost_range_begin( X& x )
inline X::iterator range_begin( X& x )
{
return x.vec.begin();
}
inline X::const_iterator boost_range_begin( const X& x )
inline X::const_iterator range_begin( const X& x )
{
return x.vec.begin();
}
inline X::iterator boost_range_end( X& x )
inline X::iterator range_end( X& x )
{
return x.vec.end();
}
inline X::const_iterator boost_range_end( const X& x )
inline X::const_iterator range_end( const X& x )
{
return x.vec.end();
}
inline X::size_type boost_range_size( const X& x )
{
return x.vec.size();
}
}
void check_extension()