Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-10-28 15:28:19 +0100
committerMartin Hořeňovský2019-10-29 23:28:08 +0100
commit316a5c0572c903e47a2e5aaf87d8bf8624077590 (patch)
treec1dd074aea2756e9844d6e03bdb9792b7a113c5f /docs
parentc781301cd444ae360abfa45d99c9276eb7fec654 (diff)
downloadcatch3-316a5c0572c903e47a2e5aaf87d8bf8624077590.tar.gz
Remove type erasure in predicate matcher
Now the type of the predicate is part of the type of the PredicateMatcher.
Diffstat (limited to 'docs')
-rw-r--r--docs/deprecations.md10
-rw-r--r--docs/release-notes.md3
2 files changed, 2 insertions, 11 deletions
diff --git a/docs/deprecations.md b/docs/deprecations.md
index 643c73ce..4101f739 100644
--- a/docs/deprecations.md
+++ b/docs/deprecations.md
@@ -33,16 +33,6 @@ The API for Catch2's console colour will be changed to take an extra
argument, the stream to which the colour code should be applied.
-### Type erasure in the `PredicateMatcher`
-
-Currently, the `PredicateMatcher` uses `std::function` for type erasure,
-so that type of the matcher is always `PredicateMatcher<T>`, regardless
-of the type of the predicate. Because of the high compilation overhead
-of `std::function`, and the fact that the type erasure is used only rarely,
-`PredicateMatcher` will no longer be type erased in the future. Instead,
-the predicate type will be made part of the PredicateMatcher's type.
-
-
---
[Home](Readme.md#top)
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 4d0527a0..c9bc2f70 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -44,7 +44,8 @@
* If the second argument has text outside tags, the text will be ignored.
* Hidden test cases are no longer included just because they don't match an exclusion tag
* Previously, a `TEST_CASE("A", "[.foo]")` would be included by asking for `~[bar]`.
-
+* `PredicateMatcher` is no longer type erased.
+ * This means that the type of the provided predicate is part of the `PredicateMatcher`'s type
### Fixes