Problems with iterator_adaptors
Hello,
I try to write a cyclic Iterator using boost::iterator_adaptors.
Unfortunally, the advance function doesn't work for negative distances
correct:
template<class Iterator>
class cycle_iterator_policies
{
public:
cycle_iterator_policies(const Iterator& begin, const Iterator& end)
: m_begin( begin ), m_end( end )
{
assert( m_begin != m_end );
}
....
template
participants (1)
-
Olaf Petzold