catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fixed VC++ warning
- Commit
43c11398e7325947fa69a0e6b3271cb281183ae6- Author
- Phil Nash ·
- Parents
e9e6b902195f
Changes
internal/catch_capture.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/catch_capture.hpp b/internal/catch_capture.hpp index abefecc7..724b5bba 100644 --- a/internal/catch_capture.hpp +++ b/internal/catch_capture.hpp @@ -406,7 +406,7 @@ public: MutableResultInfo& result, const LhsT* lhs ) - : m_result( result ), + : m_result( &result ), m_lhs( lhs ) {} @@ -417,7 +417,7 @@ public: const RhsT* rhs ) { - return m_result.captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); + return m_result->captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); } /////////////////////////////////////////////////////////////////////////// @@ -427,7 +427,7 @@ public: LhsT* rhs ) { - return m_result.captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); + return m_result->captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); } /////////////////////////////////////////////////////////////////////////// @@ -437,7 +437,7 @@ public: const RhsT* rhs ) { - return m_result.captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); + return m_result->captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); } /////////////////////////////////////////////////////////////////////////// @@ -447,11 +447,11 @@ public: LhsT* rhs ) { - return m_result.captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); + return m_result->captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); } private: - MutableResultInfo& m_result; + MutableResultInfo* m_result; const LhsT* m_lhs; };