From 75b711a36061f5ddd2516f937a5c9bc44ef9ae8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Thu, 7 May 2020 21:30:43 +0200 Subject: [PATCH] Fix ODR violation because of name clash in matchers --- src/catch2/matchers/catch_matchers_vector.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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`