From ca66dd243cf3da0c26840453c3a7803a414a6974 Mon Sep 17 00:00:00 2001 From: philsquared Date: Tue, 21 Feb 2017 09:10:44 +0000 Subject: [PATCH] Added a couple more unimplemented assignment operators to silence VS2013 warnings --- include/internal/catch_assertionresult.h | 3 +++ include/internal/catch_matchers.hpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/internal/catch_assertionresult.h b/include/internal/catch_assertionresult.h index e2b979f8..a193c556 100644 --- a/include/internal/catch_assertionresult.h +++ b/include/internal/catch_assertionresult.h @@ -32,6 +32,9 @@ namespace Catch { template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator % ( T const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator && ( T const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator || ( T const& ); + + private: + DecomposedExpression& operator = (DecomposedExpression const&); }; struct AssertionInfo diff --git a/include/internal/catch_matchers.hpp b/include/internal/catch_matchers.hpp index 0dae615f..897bb3b1 100644 --- a/include/internal/catch_matchers.hpp +++ b/include/internal/catch_matchers.hpp @@ -29,6 +29,8 @@ namespace Matchers { protected: virtual std::string describe() const = 0; mutable std::string m_cachedToString; + private: + MatcherUntypedBase& operator = (MatcherUntypedBase const&); }; template