Changes in / [88bc876:97f9619]
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
r88bc876 r97f9619 37 37 } 38 38 39 forall( istype & | istream( istype ), E | CfaEnum( E ) )39 forall( istype & | istream( istype ), E | CfaEnum( E )| Serial(E) ) 40 40 istype & ?|?( istype & is, E & e ) { 41 41 // fprintf( stderr, "here0\n" ); -
libcfa/src/enum.hfa
r88bc876 r97f9619 34 34 // }; 35 35 36 forall( E | Serial( E )) trait CfaEnum {36 forall( E ) trait CfaEnum { 37 37 const char * label( E e ); 38 38 unsigned int posn( E e ); … … 45 45 // I/O 46 46 47 forall( istype & | istream( istype ), E | CfaEnum( E ) )47 forall( istype & | istream( istype ), E | CfaEnum( E ) | Serial(E) ) 48 48 istype & ?|?( istype &, E & ); 49 49 … … 54 54 55 55 static inline 56 forall( E | CfaEnum( E) ) {56 forall( E | Serial(E) | CfaEnum(E) ) { 57 57 int ?==?( E l, E r ) { return posn( l ) == posn( r ); } // relational operators 58 58 int ?!=?( E l, E r ) { return posn( l ) != posn( r ); }
Note: See TracChangeset
for help on using the changeset viewer.