extent;string: return references in iterators

This commit is contained in:
Danny Robson 2018-03-27 16:05:46 +11:00
parent 67c8c9c69c
commit 048cffaee7
2 changed files with 3 additions and 3 deletions

View File

@ -124,8 +124,8 @@ namespace util {
{ ; }
point<S,T> operator* () { return m_cursor; }
point<S,T> operator* () const { return m_cursor; }
point<S,T>& operator* () & { return m_cursor; }
const point<S,T>& operator* () const & { return m_cursor; }
iterator& operator++ (void)&
{

View File

@ -78,7 +78,7 @@ namespace util {
return *this;
}
range_type operator* (void) const
const range_type& operator* (void) const
{
return m_range;
}