Ticket #1947: iterator_facade.diff

File iterator_facade.diff, 482 bytes (added by Roland Schwarz, 14 years ago)
  • iterator_facade.hpp

     
    352352          : m_iter(iter)
    353353        {}
    354354
    355         operator reference() const
     355        operator value_type() const
    356356        {
    357             return *m_iter;
     357            return static_cast<value_type>(*m_iter);
    358358        }
    359359
    360360        operator_brackets_proxy& operator=(value_type const& val)