From 26fdcd0d54971992a267ef53e788a4e0c16d51d5 Mon Sep 17 00:00:00 2001 From: Grigoriy Chudnov Date: Tue, 14 Feb 2017 11:33:39 +0300 Subject: [PATCH] fix annoying assignment operator could not be generated warnings in msvc2013 --- include/internal/catch_expression_lhs.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/internal/catch_expression_lhs.hpp b/include/internal/catch_expression_lhs.hpp index 33a0cb11..106a6b0a 100644 --- a/include/internal/catch_expression_lhs.hpp +++ b/include/internal/catch_expression_lhs.hpp @@ -27,6 +27,8 @@ class ExpressionLhs : public DecomposedExpression { public: ExpressionLhs( ResultBuilder& rb, T lhs ) : m_rb( rb ), m_lhs( lhs ), m_truthy(false) {} + ExpressionLhs& operator = ( const ExpressionLhs& ); + template BinaryExpression operator == ( RhsT const& rhs ) { @@ -105,6 +107,8 @@ public: BinaryExpression( ResultBuilder& rb, LhsT lhs, RhsT rhs ) : m_rb( rb ), m_lhs( lhs ), m_rhs( rhs ) {} + BinaryExpression& operator = ( BinaryExpression& ); + void endExpression() const { m_rb .setResultType( Internal::compare( m_lhs, m_rhs ) )