forked from boostorg/range
[boost][range] - Trac 5971 - size() should return an unsigned type.
[SVN r77990]
This commit is contained in:
1 parent
1cb6a99c80
commit
11238e4c19
14 files changed
+136
-125
No files matched your search
@@ -44,7 +44,7 @@ namespace boost
|
||||
BOOST_CHECK_EQUAL( boost::udistance(rng), result_fn.invocation_count() );
|
||||
|
||||
fn_t result_fn2 = boost::for_each(boost::make_iterator_range(rng), fn_t(rng));
|
||||
BOOST_CHECK_EQUAL( boost::udistance(rng), result_fn.invocation_count() );
|
||||
BOOST_CHECK_EQUAL( boost::udistance(rng), result_fn2.invocation_count() );
|
||||
|
||||
// Test the constant version
|
||||
const SinglePassRange& cref_rng = rng;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace boost_range_extension_size_test
|
||||
impl_t m_impl;
|
||||
};
|
||||
|
||||
inline boost::range_difference<std::list<int> >::type
|
||||
inline boost::range_size<std::list<int> >::type
|
||||
range_calculate_size(const FooWithoutSize& rng)
|
||||
{
|
||||
return 2u;
|
||||
|
||||
Reference in new issue
Block a user