diff --git a/src/catch2/matchers/catch_matchers_vector.hpp b/src/catch2/matchers/catch_matchers_vector.hpp index 71634813..41fd6939 100644 --- a/src/catch2/matchers/catch_matchers_vector.hpp +++ b/src/catch2/matchers/catch_matchers_vector.hpp @@ -17,9 +17,9 @@ namespace Catch { namespace Matchers { template - struct ContainsElementMatcher final : MatcherBase> { + struct VectorContainsElementMatcher final : MatcherBase> { - ContainsElementMatcher(T const& comparator): + VectorContainsElementMatcher(T const& comparator): m_comparator(comparator) {} @@ -168,8 +168,8 @@ namespace Matchers { //! Creates a matcher that matches vectors that contain `comparator` as an element template> - ContainsElementMatcher VectorContains( T const& comparator ) { - return ContainsElementMatcher(comparator); + VectorContainsElementMatcher VectorContains( T const& comparator ) { + return VectorContainsElementMatcher(comparator); } //! Creates a matcher that matches vectors that are exactly equal to `comparator`