¡@

Home 

c++ Programming Glossary: theresult

How can I extend a lexical cast to support enumerated types?

http://stackoverflow.com/questions/1528374/how-can-i-extend-a-lexical-cast-to-support-enumerated-types

typename T bool ConvertString const std string theString T theResult std istringstream iss theString return iss theResult .fail This.. T theResult std istringstream iss theString return iss theResult .fail This does not work for enumerated types however so I have.. T bool ConvertStringToEnum const std string theString T theResult std istringstream iss theString unsigned int temp const bool..