Alec Bizan / Publications
Forum
function template issue
Hi guys. I have this function template called to_type that I use to convert a string to other data types: template < typename T> T to_type( string str_val) { T val; if ( ( typename (T) == " int ") || ( typename (val) == " long ") ) val = StringToInteger (str_val); if ( typename