Revert "Only add wstring versions of toString if wchar_t has been defined. This fixes some issues on embedded platforms where wstring isn't available."

This will be done with a simple #ifdef instead.
This reverts commit 6498a5112c.
This commit is contained in:
Marco Nilsson 2013-02-05 09:20:45 +01:00
parent 6498a5112c
commit 406917f793
2 changed files with 0 additions and 4 deletions

View File

@ -73,7 +73,6 @@ inline std::string toString( const std::string& value ) {
return "\"" + value + "\"";
}
#ifdef wchar_t
inline std::string toString( const std::wstring& value ) {
std::ostringstream oss;
oss << "\"";
@ -82,7 +81,6 @@ 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}" );

View File

@ -545,7 +545,6 @@ inline std::string toString( const std::string& value ) {
return "\"" + value + "\"";
}
#ifdef wchar_t
inline std::string toString( const std::wstring& value ) {
std::ostringstream oss;
oss << "\"";
@ -554,7 +553,6 @@ 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}" );