¡@

Home 

c++ Programming Glossary: my_enum_convert

enum-int casting: operator or function

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

a little bit like the builtin casts template typename T T my_enum_convert int template En my_enum_convert En int in switch in case ValA.. template typename T T my_enum_convert int template En my_enum_convert En int in switch in case ValA return VALUE_A case ValB return.. throw std logic_error __FILE__ enum En out of range int my_enum_convert En in switch in case VALUE_A return ValA case VALUE_B return..