diff --git a/include/boost/iterator/iterator_concepts.hpp b/include/boost/iterator/iterator_concepts.hpp index 26a23c9..f060491 100644 --- a/include/boost/iterator/iterator_concepts.hpp +++ b/include/boost/iterator/iterator_concepts.hpp @@ -104,7 +104,7 @@ namespace boost_concepts { typedef typename boost::detail::iterator_traits::value_type value_type; void constraints() { - const value_type& r = *i; + value_type& r = const_cast(*i); boost::ignore_unused_variable_warning(r); } Iterator i;