mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
Mark type erasure in PredicateFunction as deprecated
This commit is contained in:
parent
fc320f6b8f
commit
0685216175
@ -93,6 +93,17 @@ positively match a testspec.
|
|||||||
The API for Catch2's console colour will be changed to take an extra
|
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.
|
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)
|
[Home](Readme.md#top)
|
||||||
|
Loading…
Reference in New Issue
Block a user