From bb84f0788af149367f98ac111ad8dcdea3d72051 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 15 Feb 2018 13:59:02 +0000 Subject: [PATCH] Removed unnecessary use of ostringstream from catch_enforce.h --- include/internal/catch_enforce.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/internal/catch_enforce.h b/include/internal/catch_enforce.h index 7dc3e3d0..513dcf1c 100644 --- a/include/internal/catch_enforce.h +++ b/include/internal/catch_enforce.h @@ -11,10 +11,9 @@ #include "catch_stream.h" #include -#include #define CATCH_PREPARE_EXCEPTION( type, msg ) \ - type( static_cast( Catch::ReusableStringStream().get() << msg ).str() ) + type( ( Catch::ReusableStringStream() << msg ).str() ) #define CATCH_INTERNAL_ERROR( msg ) \ throw CATCH_PREPARE_EXCEPTION( std::logic_error, CATCH_INTERNAL_LINEINFO << ": Internal Catch error: " << msg); #define CATCH_ERROR( msg ) \