enum-int casting: operator or function

后端 未结 5 1740
走了就别回头了
走了就别回头了 2021-01-02 12:59

In the external code that I am using there is enum:

enum En {VALUE_A, VALUE_B, VALUE_C};

In another external code that I am using there ar

5条回答
  •  孤城傲影
    2021-01-02 13:11

    Have functions and then overload the library functions?

    //libFunc( enum a );
    
    libFuncOverload( define a ) {
        libFunc( toEn( a ) );
    }
    

提交回复
热议问题