I'm getting an error concerning enum (I think)

前端 未结 4 1989
粉色の甜心
粉色の甜心 2020-12-20 16:41

I\'m testing code remotely on a Solaris machine through SSH Secure Shell using c++. Not sure of what version anything is; Solaris, the c++/compiler, etc. (and don\'t know ho

4条回答
  •  礼貌的吻别
    2020-12-20 17:12

    I think it's the following line:

    int size_of( int );
    

    ...should be something more like:

    int sizeOfInt = size_of( int );
    

    edit

    I just compiled it on my machine and it's your OVERFLOW definition... #define's are evil!

    Try this:

    enum STR_TO_INT_STATUS { STR_TO_INT_SUCCESS, STR_TO_INT_OVERFLOW, STR_TO_INT_UNDERFLOW, STR_TO_INT_INCONVERTIBLE};
    

提交回复
热议问题