1#ifndef CPPUNIT_TOOLS_STRINGHELPER_H 
    2#define CPPUNIT_TOOLS_STRINGHELPER_H 
   22typename std::enable_if<!std::is_enum<T>::value, std::string>::type 
toString(
const T& x)
 
 
   31typename 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);
 
 
   39template<> 
inline std::string 
toString(
const signed char& x)
 
   41    return toString(
static_cast<int>(x));
 
 
   44template<> 
inline std::string 
toString(
const unsigned char& x)
 
   46    return toString(
static_cast<unsigned int>(x));
 
 
 
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
Methods for converting values to strings. Replaces CPPUNIT_NS::StringTools::toString.
Definition StringHelper.h:16
std::enable_if<!std::is_enum< T >::value, std::string >::type toString(const T &x)
Definition StringHelper.h:22