From 9e5680b5904c5bfcd6d1b5a061a6b821bfff7d13 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Fri, 18 Nov 2016 11:50:32 -0800 Subject: [PATCH] Don't assume that because type `T` is a range that `const T` is also a range. size_type erroneously dispatches to detail::size_type_. 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. --- include/boost/range/size_type.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/boost/range/size_type.hpp b/include/boost/range/size_type.hpp index f41c321..0a2ea81 100644 --- a/include/boost/range/size_type.hpp +++ b/include/boost/range/size_type.hpp @@ -83,11 +83,6 @@ namespace boost detail::range_size { }; - template< class T > - struct range_size : - detail::range_size - { }; - } // namespace boost