mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-21 00:22:11 +02:00
changed LvalueIteratorConcept to really catch errors
[SVN r22017]
This commit is contained in:
@ -104,7 +104,7 @@ namespace boost_concepts {
|
|||||||
typedef typename boost::detail::iterator_traits<Iterator>::value_type value_type;
|
typedef typename boost::detail::iterator_traits<Iterator>::value_type value_type;
|
||||||
void constraints()
|
void constraints()
|
||||||
{
|
{
|
||||||
const value_type& r = *i;
|
value_type& r = const_cast<value_type&>(*i);
|
||||||
boost::ignore_unused_variable_warning(r);
|
boost::ignore_unused_variable_warning(r);
|
||||||
}
|
}
|
||||||
Iterator i;
|
Iterator i;
|
||||||
|
Reference in New Issue
Block a user