From c7cf0a9f8b4a622ad254cb7f0debbcceab53bb4c Mon Sep 17 00:00:00 2001 From: Ben Arnold Date: Thu, 14 Aug 2014 12:53:21 +0100 Subject: [PATCH] Catch's Travis builds are using gcc that doesn't like the auto keyword --- projects/SelfTest/MiscTests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/SelfTest/MiscTests.cpp b/projects/SelfTest/MiscTests.cpp index 32711555..e425b64a 100644 --- a/projects/SelfTest/MiscTests.cpp +++ b/projects/SelfTest/MiscTests.cpp @@ -359,24 +359,24 @@ TEST_CASE( "Tabs and newlines show in output", "[.][whitespace][failing]" ) { TEST_CASE( "toString on const wchar_t const pointer returns the string contents", "[toString]" ) { const wchar_t * const s = L"wide load"; - auto result = Catch::toString( s ); + std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); } TEST_CASE( "toString on const wchar_t pointer returns the string contents", "[toString]" ) { const wchar_t * s = L"wide load"; - auto result = Catch::toString( s ); + std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); } TEST_CASE( "toString on wchar_t const pointer returns the string contents", "[toString]" ) { wchar_t * const s = L"wide load"; - auto result = Catch::toString( s ); + std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); } TEST_CASE( "toString on wchar_t returns the string contents", "[toString]" ) { wchar_t * s = L"wide load"; - auto result = Catch::toString( s ); + std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); } \ No newline at end of file