Add the possibility to define CATCH_CONFIG_NO_WSTRING to disable wstring support on platforms where it's not supported (AVR32, for example).

This commit is contained in:
Marco Nilsson 2013-02-05 09:21:22 +01:00
parent 406917f793
commit b7a21e47d4

View File

@ -73,6 +73,7 @@ inline std::string toString( const std::string& value ) {
return "\"" + value + "\"";
}
#ifndef CATCH_CONFIG_NO_WSTRING
inline std::string toString( const std::wstring& value ) {
std::ostringstream oss;
oss << "\"";
@ -81,6 +82,7 @@ inline std::string toString( const std::wstring& value ) {
oss << "\"";
return oss.str();
}
#endif
inline std::string toString( const char* const value ) {
return value ? Catch::toString( std::string( value ) ) : std::string( "{null string}" );