This commit is contained in:
Martin Hořeňovský committed 2026-05-12 13:16:46 +02:00
1 parent 47ea57d74f
commit 6ee0826dca
9 files changed
+356 -288

No files matched your search

+1 -1
View File
@@ -474,7 +474,7 @@ and new style matchers arbitrarily.
## Constexpr matchers
> Support for constexpr matchers was introduced in Catch2 vX.Y.Z
> Support for constexpr matchers was introduced in Catch2 3.15.0
When compiled for C++20, the new-style matchers (can) support `constexpr`
matching, albeit not `constexpr` stringification. The matcher combinators
+1 -1
View File
@@ -93,7 +93,7 @@ TEST_CASE("STATIC_CHECK showcase", "[traits]") {
* `STATIC_REQUIRE_THAT` and `STATIC_CHECK_THAT`
> `STATIC_REQUIRE_THAT` and `STATIC_CHECK_THAT` was introduced in Catch2 X.Y.Z
> `STATIC_REQUIRE_THAT` and `STATIC_CHECK_THAT` was introduced in Catch2 3.15.0
`STATIC_{REQUIRE,CHECK}_THAT` are analogous to `STATIC_{REQUIRE,CHECK}`,
but for matchers. They are always defined, even if the current compiler
+17
View File
@@ -2,6 +2,7 @@
# Release notes
**Contents**<br>
[3.15.0](#3150)<br>
[3.14.0](#3140)<br>
[3.13.0](#3130)<br>
[3.12.0](#3120)<br>
@@ -74,6 +75,22 @@
[Even Older versions](#even-older-versions)<br>
## 3.15.0
### Fixes
* Fixed ambiguous overload issue with `std::optional<T>` in C++26. (#3095)
* Since `std::optional` was turned into a range, the partial specialization of `StringMaker` for range-like types and for `std::optional<T>` were in conflict.
### Improvements
* Simplified `CATCH_REGISTER_ENUM` internals for faster compilation and retrieval.
* Successful assertion are slightly (1-2%) faster.
* Generic (new-style) matchers support constexpr matching in C++20.
* Combining matchers requires C++26.
* Catch2-provided generic matchers are all constexpr enabled.
* Added `STATIC_REQUIRE_THAT` for compile-time matcher assertions.
* This requires the compiler to support enough `constexpr` for matchers, see above.
## 3.14.0
### Fixes