Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-08-28 14:25:22

On Tue, 28 Aug 2001, Gennadiy E. Rozental wrote:
rogeef> while iterator_adaptor define operator+ with non-const
rogeef> semantic?

Actually, iterator_adaptor operator+ passes the iterator object by-value.
So it does allow const iterators to participate in operator+, which is
correct since operator+ does not modify the iterator, it just creates a
new one.


 Jeremy Siek
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster ( office phone: (812) 855-9761

Boost list run by bdawes at, gregod at, cpdaniel at, john at