Changeset 1625 for trunk/lib


Ignore:
Timestamp:
Nov 1, 2011, 4:40:37 PM (8 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/bitblock_iterator.hpp

    r1619 r1625  
    4242        }
    4343
    44         // pre-increment
     44        // prefix increment
    4545        IDISA_ALWAYS_INLINE ForwardIterator& operator++()
    4646        {
     
    4949        }
    5050
    51         // post-increment
    52         ForwardIterator& operator++(int)
     51        // postfix increment
     52        ForwardIterator operator++(int)
    5353        {
    5454                ForwardIterator temp(*this);
     
    9595        }
    9696
    97         // pre-increment
     97        // prefix decrement
    9898        IDISA_ALWAYS_INLINE ReverseIterator& operator--()
    9999        {
     
    102102        }
    103103
    104         // post-increment
    105         ReverseIterator& operator--(int)
     104        // postfix decrement
     105        ReverseIterator operator--(int)
    106106        {
    107107                ReverseIterator temp(*this);
Note: See TracChangeset for help on using the changeset viewer.