Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-05-08 01:08:07 +0200
committerMartin Hořeňovský2017-05-08 01:08:07 +0200
commitf82e31255236420060c29b8d2a4cee465bf61ed0 (patch)
tree67821bb89af55d22e02ed15296348749f6910acd /include
parentbffef1bffa5d35c22168fe011bc7aad9a1e4c228 (diff)
downloadcatch3-f82e31255236420060c29b8d2a4cee465bf61ed0.tar.gz
Attempt at fixing compilation on OSX
Since I don't have actual access to OSX, this might be a tad optimistic.
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h
index d4f1dbbb..630a65c9 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( 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)