¡@

Home 

c++ Programming Glossary: value_a

enum-int casting: operator or function

http://stackoverflow.com/questions/367819/enum-int-casting-operator-or-function

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.. I have to cast it to the corresponding value of En ValA to VALUE_A ValB to VALUEB etc because some function signature has enum.. En my_enum_convert En int in switch in case ValA return VALUE_A case ValB return VALUE_B case ValC return VALUE_C default throw..