Ignore:
Timestamp:
Nov 1, 2011, 4:43:44 PM (7 years ago)
Author:
ksherdy
Message:

Fixed overloaded postfix operator to return a copy and *not* a reference to a local variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitstream_iterator.hpp

    r1612 r1626  
    5656        }
    5757
    58         // pre-increment
     58        // prefix
    5959        inline BitStreamIterator& operator++()
    6060        {
     
    6363        }
    6464
    65         // post-increment
    66         BitStreamIterator& operator++(int)
     65        // postfix
     66        BitStreamIterator operator++(int)
    6767        {
    6868                BitStreamIterator temp(*this);
Note: See TracChangeset for help on using the changeset viewer.