Ignore:
Timestamp:
Dec 2, 2020, 12:31:42 PM (14 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
833ba13
Parents:
4f0c520
Message:

clean up all new collections and fix sequence iterator bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/queue.hfa

    r4f0c520 r3d0560d  
    187187                } // post: curr = {e in q}
    188188
    189                 bool ?>>?( QueueIter(T) & qi, T *& tp ) with( qi ) {
     189                bool ?>>?( QueueIter(T) & qi, T && tp ) with( qi ) {
    190190                        if ( curr ) {
    191                                 tp = Curr( qi );
     191                                &tp = Curr( qi );
    192192                                T * n = Next( Curr( qi ) );
    193193                                curr = (n == Curr( qi ) ) ? 0p : n;
    194                         } else tp = 0p;
    195                         return tp != 0p;
     194                        } else &tp = 0p;
     195                        return &tp != 0p;
    196196                }
    197197                // post: elts == null & !operator>>(tp) | elts != null & *tp' in elts & elts' == elts - *tp & operator>>(tp)
Note: See TracChangeset for help on using the changeset viewer.