diff --git a/include/internal/catch_matchers.hpp b/include/internal/catch_matchers.hpp index 14249ebf..27878612 100644 --- a/include/internal/catch_matchers.hpp +++ b/include/internal/catch_matchers.hpp @@ -43,7 +43,8 @@ namespace Matchers { namespace Generic { template - struct Not : public MatcherImpl, ExpressionT> { + class Not : public MatcherImpl, ExpressionT> { + public: explicit Not( Matcher const& matcher ) : m_matcher(matcher.clone()) {} Not( Not const& other ) : m_matcher( other.m_matcher ) {} @@ -54,7 +55,7 @@ namespace Matchers { virtual std::string toString() const CATCH_OVERRIDE { return "not " + m_matcher->toString(); } - + private: Ptr< Matcher > m_matcher; };