c++ Programming Glossary: stackid
Why can't I increment a variable of an enumerated type? http://stackoverflow.com/questions/3475152/why-cant-i-increment-a-variable-of-an-enumerated-type of type StackID . it actually refers to a particular stackID . I tried to increment it but in C the following is illegal.. Beware brain compiled code ahead StackID operator StackID stackID #if MY_ENUMS_ARE_CONTIGUOUS I_DO_NOT_WORRY_ABOUT_OVERFLOW return.. I_DO_NOT_WORRY_ABOUT_OVERFLOW return stackID static_cast StackID static_cast int stackID #else switch stackID..
Why can't I increment a variable of an enumerated type? http://stackoverflow.com/questions/3475152/why-cant-i-increment-a-variable-of-an-enumerated-type a variable of an enumerated type I have a enumerated type StackID and I am using the enumeration to refer to an index of a particular.. the need to create a variable called nextAvail of type StackID . it actually refers to a particular stackID . I tried to increment.. Overloading operator Beware brain compiled code ahead StackID operator StackID stackID #if MY_ENUMS_ARE_CONTIGUOUS I_DO_NOT_WORRY_ABOUT_OVERFLOW..
|