Skip to content

Commit acb201d

Browse files
committed
Fixup: VTable anchor for MatcherGenericBase
1 parent 641241e commit acb201d

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/catch2/matchers/catch_matchers_templated.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
namespace Catch {
1111
namespace Matchers {
1212

13+
std::string MatcherGenericBase::describe() const {
14+
using namespace std::string_literals;
15+
return "Undescribed generic matcher"s;
16+
}
17+
1318
namespace Detail {
1419

1520
std::string describe_multi_matcher(StringRef combine, std::string const* descriptions_begin, std::string const* descriptions_end) {

src/catch2/matchers/catch_matchers_templated.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
namespace Catch {
2323
namespace Matchers {
2424
class MatcherGenericBase : public MatcherUntypedBase {
25+
std::string describe() const override;
2526
public:
2627
constexpr MatcherGenericBase() = default;
2728

tests/SelfTest/UsageTests/MatchersConstexpr.tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace {
2121

2222
std::string describe() const override {
2323
using namespace std::string_literals;
24-
return "MatchesAnything"s;
24+
return "Matches anything"s;
2525
}
2626
};
2727

0 commit comments

Comments
 (0)