Changeset 26d40a1 for libcfa


Ignore:
Timestamp:
Aug 14, 2024, 11:55:13 AM (4 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
d1f5054
Parents:
acab1bd
Message:

add void to lowerBound() and upperBound() declaration, which is a workaround to the warning message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/enum.hfa

    racab1bd r26d40a1  
    44
    55forall( E ) trait Bounded {
    6         E lowerBound();
    7         E upperBound();
     6        E lowerBound(void);
     7        E upperBound(void);
    88};
    99
     
    5454
    5555static inline
    56 forall( E | Serial(E) | CfaEnum(E) ) {
     56forall( E | CfaEnum(E) | Serial(E) ) {
    5757        int ?==?( E l, E r ) { return posn( l ) == posn( r ); } // relational operators
    5858        int ?!=?( E l, E r ) { return posn( l ) != posn( r ); }
Note: See TracChangeset for help on using the changeset viewer.