vc6 fixes

[SVN r24116]
This commit is contained in:
Thorsten Jørgen Ottosen
2004-07-27 13:56:02 +00:00
parent ebb9cf200c
commit eb18ab0cc6
2 changed files with 28 additions and 0 deletions

View File

@ -16,12 +16,24 @@
#endif #endif
#include <boost/range/end.hpp> #include <boost/range/end.hpp>
#include <boost/range/reverse_result_iterator.hpp>
#include <boost/range/reverse_iterator.hpp> #include <boost/range/reverse_iterator.hpp>
#include <boost/range/const_reverse_iterator.hpp> #include <boost/range/const_reverse_iterator.hpp>
namespace boost namespace boost
{ {
#ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
template< class C >
inline BOOST_DEDUCED_TYPENAME reverse_result_iterator_of<C>::type
rbegin( C& c )
{
return BOOST_DEDUCED_TYPENAME reverse_result_iterator_of<C>::type( end( c ) );
}
#else
template< class C > template< class C >
inline BOOST_DEDUCED_TYPENAME reverse_iterator_of<C>::type inline BOOST_DEDUCED_TYPENAME reverse_iterator_of<C>::type
rbegin( C& c ) rbegin( C& c )
@ -36,6 +48,8 @@ rbegin( const C& c )
return BOOST_DEDUCED_TYPENAME const_reverse_iterator_of<C>::type( end( c ) ); return BOOST_DEDUCED_TYPENAME const_reverse_iterator_of<C>::type( end( c ) );
} }
#endif
} }
#endif #endif

View File

@ -16,12 +16,24 @@
#endif #endif
#include <boost/range/begin.hpp> #include <boost/range/begin.hpp>
#include <boost/range/reverse_result_iterator.hpp>
#include <boost/range/reverse_iterator.hpp> #include <boost/range/reverse_iterator.hpp>
#include <boost/range/const_reverse_iterator.hpp> #include <boost/range/const_reverse_iterator.hpp>
namespace boost namespace boost
{ {
#ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
template< class C >
inline BOOST_DEDUCED_TYPENAME reverse_result_iterator_of<C>::type
rend( C& c )
{
return BOOST_DEDUCED_TYPENAME reverse_result_iterator_of<C>::type( begin( c ) );
}
#else
template< class C > template< class C >
inline BOOST_DEDUCED_TYPENAME reverse_iterator_of<C>::type inline BOOST_DEDUCED_TYPENAME reverse_iterator_of<C>::type
rend( C& c ) rend( C& c )
@ -36,6 +48,8 @@ rend( const C& c )
return BOOST_DEDUCED_TYPENAME const_reverse_iterator_of<C>::type( begin( c ) ); return BOOST_DEDUCED_TYPENAME const_reverse_iterator_of<C>::type( begin( c ) );
} }
#endif
} // namespace 'boost' } // namespace 'boost'
#endif #endif