diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp index e049d7f5..51e9d999 100644 --- a/include/internal/catch_capture.hpp +++ b/include/internal/catch_capture.hpp @@ -367,7 +367,7 @@ public: Expression ( MutableResultInfo& result, - const T& lhs + T lhs ) : m_result( result ), m_lhs( lhs ) @@ -475,7 +475,7 @@ public: private: MutableResultInfo& m_result; - const T& m_lhs; + T m_lhs; }; template @@ -564,12 +564,12 @@ public: /////////////////////////////////////////////////////////////////////////// template - Expression operator->* + Expression operator->* ( const T & operand ) { - Expression expr( m_result, operand ); + Expression expr( m_result, operand ); return expr; }