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