diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp index 9a7714cc..1c862505 100644 --- a/include/internal/catch_capture.hpp +++ b/include/internal/catch_capture.hpp @@ -130,7 +130,7 @@ static_cast(expr); \ __catchResult.captureResult( Catch::ResultWas::DidntThrowException ); \ } \ - catch( exceptionType ) { \ + catch( exceptionType const& ) { \ __catchResult.captureResult( Catch::ResultWas::Ok ); \ } \ catch( ... ) { \ @@ -194,7 +194,7 @@ static_cast(expr); \ __catchResult.captureResult( Catch::ResultWas::DidntThrowException ); \ } \ - catch( exceptionType ex ) { \ + catch( exceptionType const& ex ) { \ __catchResult.captureMatch( ex, matcher, #matcher ); \ } \ catch( ... ) { \