34 #ifndef __ConvertToStringHelper_h
35 #define __ConvertToStringHelper_h
40 #include "boost/lexical_cast.hpp"
42 template<
typename T >
51 template<
typename T >
56 return boost::lexical_cast< T >( the_string );
58 catch( boost::bad_lexical_cast& )
60 std::cout <<
"***" <<std::endl;
61 std::cout <<
"Bad Conversion: " <<std::endl;
62 std::cout <<
"the_string = " << the_string <<std::endl;
63 std::cout <<
"Debug: In " << __FILE__ <<
", line " << __LINE__;
64 std::cout << std::endl;
T ss_atoi(const std::string &the_string)
std::string ConvertToString(const T &ToConvert)