From: Roland McGrath Date: Thu, 1 Oct 2009 21:00:12 +0000 (-0700) Subject: const nits in subr::indexed_iterator. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bddb468447bd9ab6b6334e62ce1e22190757107c;p=thirdparty%2Felfutils.git const nits in subr::indexed_iterator. --- diff --git a/libdw/c++/subr.hh b/libdw/c++/subr.hh index a68d60449..c080aa8a4 100644 --- a/libdw/c++/subr.hh +++ b/libdw/c++/subr.hh @@ -347,42 +347,42 @@ namespace elfutils return _m_contents[_m_idx + n]; } - inline indexed_iterator operator+ (const indexed_iterator &i) + inline indexed_iterator operator+ (const indexed_iterator &i) const { return indexed_iterator (_m_contents, _m_idx + i._m_idx); } inline indexed_iterator operator+ (const typename array::difference_type - &i) + &i) const { return indexed_iterator (_m_contents, _m_idx + i); } inline typename array::difference_type - operator- (const indexed_iterator &i) + operator- (const indexed_iterator &i) const { return _m_idx - i._m_idx; } - inline bool operator== (const indexed_iterator &i) + inline bool operator== (const indexed_iterator &i) const { return _m_idx == i._m_idx; } - inline bool operator!= (const indexed_iterator &i) + inline bool operator!= (const indexed_iterator &i) const { return _m_idx != i._m_idx; } - inline bool operator< (const indexed_iterator &i) + inline bool operator< (const indexed_iterator &i) const { return _m_idx < i._m_idx; } - inline bool operator> (const indexed_iterator &i) + inline bool operator> (const indexed_iterator &i) const { return _m_idx > i._m_idx; } - inline bool operator<= (const indexed_iterator &i) + inline bool operator<= (const indexed_iterator &i) const { return _m_idx <= i._m_idx; } - inline bool operator>= (const indexed_iterator &i) + inline bool operator>= (const indexed_iterator &i) const { return _m_idx >= i._m_idx; }