From b7a21e47d4162cfee458748f1b933398c9600099 Mon Sep 17 00:00:00 2001 From: Marco Nilsson Date: Tue, 5 Feb 2013 09:21:22 +0100 Subject: [PATCH] Add the possibility to define CATCH_CONFIG_NO_WSTRING to disable wstring support on platforms where it's not supported (AVR32, for example). --- include/internal/catch_tostring.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/internal/catch_tostring.hpp b/include/internal/catch_tostring.hpp index b6802af9..b2c206f2 100644 --- a/include/internal/catch_tostring.hpp +++ b/include/internal/catch_tostring.hpp @@ -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}" );