forked from boostorg/range
Compare commits
5 Commits
boost-1.59
...
boost-1.65
Author | SHA1 | Date | |
---|---|---|---|
56d470635d | |||
f829c55c72 | |||
7567dce0c1 | |||
0e931f4a80 | |||
4f66482414 |
@ -28,3 +28,8 @@ boostbook quickbook
|
||||
<format>pdf:<xsl:param>img.src.path=$(images_location)/
|
||||
;
|
||||
|
||||
###############################################################################
|
||||
alias boostdoc ;
|
||||
explicit boostdoc ;
|
||||
alias boostrelease : quickbook ;
|
||||
explicit boostrelease ;
|
||||
|
@ -36,7 +36,7 @@ namespace boost
|
||||
BOOST_RANGE_EXTRACT_OPTIONAL_TYPE( const_iterator )
|
||||
|
||||
template< typename C >
|
||||
struct range_const_iterator
|
||||
struct range_const_iterator_helper
|
||||
: extract_const_iterator<C>
|
||||
{};
|
||||
|
||||
@ -45,7 +45,7 @@ struct range_const_iterator
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template< typename Iterator >
|
||||
struct range_const_iterator<std::pair<Iterator,Iterator> >
|
||||
struct range_const_iterator_helper<std::pair<Iterator,Iterator> >
|
||||
{
|
||||
typedef Iterator type;
|
||||
};
|
||||
@ -55,7 +55,7 @@ struct range_const_iterator<std::pair<Iterator,Iterator> >
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template< typename T, std::size_t sz >
|
||||
struct range_const_iterator< T[sz] >
|
||||
struct range_const_iterator_helper< T[sz] >
|
||||
{
|
||||
typedef const T* type;
|
||||
};
|
||||
@ -64,7 +64,7 @@ struct range_const_iterator< T[sz] >
|
||||
|
||||
template<typename C, typename Enabler=void>
|
||||
struct range_const_iterator
|
||||
: range_detail::range_const_iterator<
|
||||
: range_detail::range_const_iterator_helper<
|
||||
BOOST_DEDUCED_TYPENAME remove_reference<C>::type
|
||||
>
|
||||
{
|
||||
|
@ -83,11 +83,6 @@ namespace boost
|
||||
detail::range_size<T>
|
||||
{ };
|
||||
|
||||
template< class T >
|
||||
struct range_size<const T > :
|
||||
detail::range_size<T>
|
||||
{ };
|
||||
|
||||
} // namespace boost
|
||||
|
||||
|
||||
|
@ -59,8 +59,8 @@ void check_iterator_range()
|
||||
BOOST_CHECK( false );
|
||||
//#endif
|
||||
|
||||
BOOST_CHECK_EQUAL( r.size(), size( r ) );
|
||||
BOOST_CHECK_EQUAL( r2.size(), size( r2 ) );
|
||||
BOOST_CHECK_EQUAL( r.size(), boost::size( r ) );
|
||||
BOOST_CHECK_EQUAL( r2.size(), boost::size( r2 ) );
|
||||
|
||||
BOOST_CHECK_EQUAL( std::distance( r.begin(), r.end() ),
|
||||
std::distance( boost::begin( r2 ), boost::end( r2 ) ) );
|
||||
|
Reference in New Issue
Block a user