|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-08-28 14:25:22
On Tue, 28 Aug 2001, Gennadiy E. Rozental wrote:
rogeef>
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.
Cheers,
Jeremy
----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-9761
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk