catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Removed unnecessary use of ostringstream from catch_enforce.h
- Commit
bb84f0788af149367f98ac111ad8dcdea3d72051- Author
- Phil Nash ·
- Parents
e84768fff1a9
Changes
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 <stdexcept> -#include <iosfwd> #define CATCH_PREPARE_EXCEPTION( type, msg ) \ - type( static_cast<std::ostringstream&&>( 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 ) \