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:
Eric Niebler
2016-11-18 11:50:32 -08:00
committed by GitHub
parent e48b9c38e7
commit 9e5680b590

View File

@ -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