Changeset 0c674e8


Ignore:
Timestamp:
May 30, 2018, 3:20:31 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, with_gc
Children:
8cc7dd1
Parents:
c24ef9d
Message:

added missing bool testing operator for dllist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/bits/containers.h

    rc24ef9d r0c674e8  
    186186
    187187        forall(dtype T | is_node(T))
    188         static inline bool ?!=?( __queue(T) & this, zero_t zero ) with( this ) {
    189                 return head != 0;
     188        static inline bool ?!=?( __queue(T) & this, zero_t zero ) {
     189                return this.head != 0;
    190190        }
    191191#endif
     
    266266                __get( node ).prev = NULL;
    267267        }
     268
     269        forall(dtype T | sized(T))
     270        static inline bool ?!=?( __dllist(T) & this, zero_t zero ) {
     271                return this.head != 0;
     272        }
    268273        #undef next
    269274        #undef prev
Note: See TracChangeset for help on using the changeset viewer.