diff options
| author | Phil Nash | 2018-02-15 13:59:02 +0000 |
|---|---|---|
| committer | Phil Nash | 2018-02-15 13:59:02 +0000 |
| commit | bb84f0788af149367f98ac111ad8dcdea3d72051 (patch) | |
| tree | 54724733dff05075cc8bfe08b1cfeac292bd17b8 /include | |
| parent | e84768fff1a96ad31785534cd884bed97078a6ee (diff) | |
| download | catch3-bb84f0788af149367f98ac111ad8dcdea3d72051.tar.gz | |
Removed unnecessary use of ostringstream from catch_enforce.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_enforce.h | 3 |
1 files changed, 1 insertions, 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 ) \ |