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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-10-28 15:14:54 +0100
committerMartin Hořeňovský2019-10-28 15:15:13 +0100
commit0685216175f851e47d015408415d61823c6d7c3b (patch)
treec6e7a3d2bb4db1980abd8b14c74bf3093a2f169e
parentfc320f6b8f55b8781a5e039ff0cad23c578568c2 (diff)
downloadcatch3-0685216175f851e47d015408415d61823c6d7c3b.tar.gz
Mark type erasure in PredicateFunction as deprecated
-rw-r--r--docs/deprecations.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/deprecations.md b/docs/deprecations.md
index 77830298..c2b178e2 100644
--- a/docs/deprecations.md
+++ b/docs/deprecations.md
@@ -93,6 +93,17 @@ positively match a testspec.
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)