Attempt at fixing compilation on OSX

Since I don't have actual access to OSX, this might be a tad optimistic.
This commit is contained in:
Martin Hořeňovský 2017-05-08 01:08:07 +02:00
parent bffef1bffa
commit f82e312552
1 changed files with 2 additions and 2 deletions

View File

@ -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( static_cast<std::ostringstream&>( 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( static_cast<std::ostringstream&>( 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)