diff --git a/include/boost/range/detail/implementation_help.hpp b/include/boost/range/detail/implementation_help.hpp index 4db8be4..77cc8cc 100755 --- a/include/boost/range/detail/implementation_help.hpp +++ b/include/boost/range/detail/implementation_help.hpp @@ -54,7 +54,7 @@ namespace boost template< class Char > inline Char* str_end( Char* s ) { - return (Char*)str_end( s, s ); + return const_cast( str_end( s, s ) ); } template< class T, std::size_t sz >