1 #ifndef CPPUNIT_TOOLS_STRINGHELPER_H 
    2 #define CPPUNIT_TOOLS_STRINGHELPER_H 
   22 typename std::enable_if<!std::is_enum<T>::value, std::string>::type 
toString(
const T& x)
 
   31 typename std::enable_if<std::is_enum<T>::value, std::string>::type 
toString(
const T& x)
 
   34     ost << static_cast<typename std::underlying_type<T>::type>(x);
 
   39 template<> 
inline std::string 
toString(
const signed char& x)
 
   41     return toString(static_cast<int>(x));
 
   44 template<> 
inline std::string 
toString(
const unsigned char& x)
 
   46     return toString(static_cast<unsigned int>(x));
 
   54 #endif  // CPPUNIT_TOOLS_STRINGHELPER_H