forked from boostorg/range
Don't assume that because type T
is a range that const T
is also a range.
size_type<const T> erroneously dispatches to detail::size_type_<T>. That breaks for types that have non-const begin/end but that don't have const begin/end. The range-v3 library has such types.
This commit is contained in:
@ -83,11 +83,6 @@ namespace boost
|
|||||||
detail::range_size<T>
|
detail::range_size<T>
|
||||||
{ };
|
{ };
|
||||||
|
|
||||||
template< class T >
|
|
||||||
struct range_size<const T > :
|
|
||||||
detail::range_size<T>
|
|
||||||
{ };
|
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user