diff options
| author | Martin Hořeňovský | 2017-05-08 00:54:53 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-05-08 00:54:53 +0200 |
| commit | d7eb041ab5e07ae2ad5328ceee2a6beedb1bfbae (patch) | |
| tree | 3fa2ab6b03dfd75aab07b7ea9ce1ea46e3d65330 /include | |
| parent | 8c757cc54253928f86c354f2936d8f7aef1d07fb (diff) | |
| download | catch3-d7eb041ab5e07ae2ad5328ceee2a6beedb1bfbae.tar.gz | |
Fix compilation on non-OSX platforms
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h index ad393c52..d4f1dbbb 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<std::size_t>( __LINE__ ) ) #define CATCH_INTERNAL_ERROR( msg ) \ - throw std::logic_error( ( std::ostringstream() << CATCH_INTERNAL_LINEINFO << ": Internal Catch error: " << msg ).str() ) + throw std::logic_error( static_cast<std::ostringstream&>( std::ostringstream() << CATCH_INTERNAL_LINEINFO << ": Internal Catch error: " << msg ).str() ) #define CATCH_ERROR( msg ) \ - throw std::domain_error( ( std::ostringstream() << msg ).str() ) + throw std::domain_error( static_cast<std::ostringstream&>( std::ostringstream() << msg ).str() ) #define CATCH_ENFORCE( condition, msg ) \ do{ if( !(condition) ) CATCH_ERROR( msg ); } while(false) |