From f82e31255236420060c29b8d2a4cee465bf61ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 8 May 2017 01:08:07 +0200 Subject: [PATCH] Attempt at fixing compilation on OSX Since I don't have actual access to OSX, this might be a tad optimistic. --- include/internal/catch_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h index d4f1dbbb..630a65c9 100644 --- a/include/internal/catch_common.h +++ b/include/internal/catch_common.h @@ -121,9 +121,9 @@ namespace Catch { #define CATCH_INTERNAL_LINEINFO \ ::Catch::SourceLineInfo( __FILE__, static_cast( __LINE__ ) ) #define CATCH_INTERNAL_ERROR( msg ) \ - throw std::logic_error( static_cast( std::ostringstream() << CATCH_INTERNAL_LINEINFO << ": Internal Catch error: " << msg ).str() ) + throw std::logic_error( static_cast( std::ostringstream() << CATCH_INTERNAL_LINEINFO << ": Internal Catch error: " << msg ).str() ) #define CATCH_ERROR( msg ) \ - throw std::domain_error( static_cast( std::ostringstream() << msg ).str() ) + throw std::domain_error( static_cast( std::ostringstream() << msg ).str() ) #define CATCH_ENFORCE( condition, msg ) \ do{ if( !(condition) ) CATCH_ERROR( msg ); } while(false)